Add more javadoc to Resource.java