Update Resource.java