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