public function pass()
 {
     $credentials = ThreadContext::currentCallerCredentials();
     if ($credentials != null) {
         /*String[]*/
         $userRoles = ORBConfig::getInstance()->getSecurity()->getRolesProvider()->getUserRoles($credentials->getUserId());
         //			print_r($userRoles);
         //			Log::log(LoggingConstants::MYDEBUG, ob_get_contents());
         for ($i = 0, $max = count($userRoles); $i < $max; $i++) {
             if ($userRoles[$i] == $this->m_roleName) {
                 return true;
             }
         }
     }
     //		Log::log(LoggingConstants::MYDEBUG, "No roles");
     return false;
     //      $credentials = ThreadContext::currentCallerCredentials();
     //
     //      Log::log( LoggingConstants::DEBUG, "got credentials - " . ($credentials == null));
     //
     //      if($credentials == null)
     //      {
     //      Log::log( LoggingConstants::DEBUG, "credentials are null ");
     //		// return false, authorization is required
     //		return false;
     //      }
     //
     //      $userName = $credentials->getUserId();
     //      $password = $credentials->getPassword();
     //
     //      $orbConfig = ORBConfig::getInstance();
     //      $security = $orbConfig->getSecurity();
     //
     //      Log::log( LoggingConstants::DEBUG, "username " . $userName . "     password " . $password ."    role " . $this->m_roleName);
     //
     //
     //      return  $security->isInRole($userName, $password, $this->m_roleName);
 }