UIScript is able to call a method from DefaultController.java now. you can define a java method and call this method within your UIScript.