Check SecuredAction right in compile time