usersession.setUserStatus(admin,"performancefoo"+post,UserDataConstants.STATUS_NEW);
usersession.setUserStatus(admin,"performancefoo"+post,UserDataConstants.STATUS_NEW, false);
    private void newUser(String post) throws Exception {        // Make user that we know...        boolean userExists = false;        try {            usersession.addUser(admin,"performancefoo"+post,"foo123","C=SE,O=AnaTom,OU=Performance Test,CN=performancefoo",null,"performancefoo@foo.se",false,SecConst.EMPTY_ENDENTITYPROFILE,SecConst.CERTPROFILE_FIXED_ENDUSER,SecConst.USER_ENDUSER,SecConst.TOKEN_SOFT_PEM,0,caid);            log.debug("created user: performancefoo"+post+", foo123, C=SE, O=AnaTom, OU=Performance Test,CN=performancefoo");        } catch (RemoteException re) {            if (re.detail instanceof DuplicateKeyException) {                userExists = true;            }        } catch (DuplicateKeyException dke) {            userExists = true;        }        if (userExists) {            log.info("User performancefoo already exists, resetting status.");            usersession.setUserStatus(admin,"performancefoo"+post,UserDataConstants.STATUS_NEW);            log.debug("Reset status to NEW");        }    }