} else { this.result = null; }  if(this.result!= null && this.result.length > 0) { return this.result[0]; } else {
if(this.result!= null && this.result.length > 0) { return this.result[0]; }
    public HardTokenView getHardTokenViewWithUsername(String username) throws RemoteException{      this.result=null;      Collection res = hardtokensession.getHardTokens(admin, username);      Iterator iter = res.iterator();      if(res.size() > 0) {        this.result = new HardTokenView[res.size()];        for(int i=0;iter.hasNext();i++) {          this.result[i]=new HardTokenView((HardTokenData) iter.next());        }      } else {        this.result = null;      }      if(this.result!= null && this.result.length > 0) {        return this.result[0];      } else {        return null;      }    }