code: public void checkAuthorization(Action action, ContainerRequestContext requestContext) throws NotAuthorizedException {
  		String clientApplicationName = (String)requestContext.getProperty(RequestHandler.APPSENSOR_CLIENT_APPLICATION_IDENTIFIER_ATTR);
  
  		ClientApplication clientApplication = appSensorServer.getConfiguration().findClientApplication(clientApplicationName);
  		
  		appSensorServer.getAccessController().assertAuthorized(clientApplication, action, new Context());
  	}
docs: Check authz before performing action.
  
  @param action desired action
  @throws NotAuthorizedException thrown if user does not have role.