Simple handling of Java resources