Some util methods of base contoller