General purpose utility classes for Java