Fixed static error in Resource.java