try { userdata = useradminsession.findUser(administrator, username); } catch (FinderException fe) {
if(!username.equals(this.username) || this.useradmindata == null){ try { this.useradmindata = useradminsession.findUser(administrator, username); } catch (FinderException fe) { } }  if (useradmindata != null) { returnval = useradmindata.getTokenType();
    public int getTokenType(String username) throws Exception {        int returnval = 0;        UserAdminData userdata = null;        IUserAdminSessionRemote useradminsession = useradminhome.create();        try {            userdata = useradminsession.findUser(administrator, username);        } catch (FinderException fe) {        }        if (userdata != null) {            returnval = userdata.getTokenType();        }        return returnval;    }