if(admin == null) throw  new AuthorizationDeniedException("Administrator not authorized to resource : " + resource);
    public boolean isAuthorized(Admin admin, String resource) throws AuthorizationDeniedException {       AdminInformation admininformation = admin.getAdminInformation();	          if(!authorizationproxy.isAuthorized(admininformation, resource)  && !authorizationproxy.isAuthorized(admininformation, "/super_administrator")){         if(!admininformation.isSpecialUser())           logsession.log(admin, admininformation.getX509Certificate(), module,   new java.util.Date(),null, null, LogEntry.EVENT_ERROR_NOTAUTHORIZEDTORESOURCE,"Resource : " + resource);         else           logsession.log(admin, ILogSessionLocal.INTERNALCAID, module,   new java.util.Date(),null, null, LogEntry.EVENT_ERROR_NOTAUTHORIZEDTORESOURCE,"Resource : " + resource);           throw  new AuthorizationDeniedException("Administrator not authorized to resource : " + resource);       }       if(!admininformation.isSpecialUser())         logsession.log(admin,admininformation.getX509Certificate(),  module, new java.util.Date(),null, null, LogEntry.EVENT_INFO_AUTHORIZEDTORESOURCE,"Resource : " + resource);              else         logsession.log(admin, ILogSessionLocal.INTERNALCAID,  module, new java.util.Date(),null, null, LogEntry.EVENT_INFO_AUTHORIZEDTORESOURCE,"Resource : " + resource);                  return true;    }