Utility for java application