1. adding new BaseResource.java