I\'m working on a project where i want to convert a Java code to Groovy and/or can import java code a function in groovy. It worked fine with java but its not working as exp