Added functionality to support method level spring security checking.