Some utilities for java-based applications