Added a java query script