Update MainResource.java