add doService method in BaseController.java