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