Added getResource.java