Added ResourceController.java class to controllers.