UserView[] returnval = null; UserDataVO user = null; ArrayList userlist = new ArrayList();  Collection usernames = hardtokensession.findHardTokenByTokenSerialNumber(administrator, tokensn);  Iterator iter = usernames.iterator(); while(iter.hasNext()){ try{ user = adminsession.findUser(administrator, (String) iter.next()); }catch(AuthorizationDeniedException e){}
UserView[] returnval = null; UserDataVO user = null; ArrayList userlist = new ArrayList();
    public UserView[] filterByTokenSN(String tokensn, int index,int size) throws Exception{      UserView[] returnval = null;      UserDataVO user = null;      ArrayList userlist = new ArrayList();            Collection usernames = hardtokensession.findHardTokenByTokenSerialNumber(administrator, tokensn);           Iterator iter = usernames.iterator();      while(iter.hasNext()){       	          try{             user = adminsession.findUser(administrator, (String) iter.next());         }catch(AuthorizationDeniedException e){}                 if(user!=null)           userlist.add(user);      }           users.setUsers(userlist, informationmemory.getCAIdToNameMap());      returnval= users.getUsers(index,size);      return returnval;    }