Added method preProcessCommand in BaseCrudController.