Utility code for java and jvm-based languages