usersession.setUserStatus(admin,"sceptest",UserDataConstants.STATUS_NEW, false);
usersession.setUserStatus(admin,"sceptest",UserDataConstants.STATUS_NEW);
    private void createScepUser() throws RemoteException, AuthorizationDeniedException, FinderException, UserDoesntFullfillEndEntityProfile, ApprovalException, WaitingForApprovalException {        // Make user that we know...        boolean userExists = false;        try {            usersession.addUser(admin,"sceptest","foo123","C=SE,O=PrimeKey,CN=sceptest",null,"ocsptest@anatom.se",false,SecConst.EMPTY_ENDENTITYPROFILE,SecConst.CERTPROFILE_FIXED_ENDUSER,SecConst.USER_ENDUSER,SecConst.TOKEN_SOFT_PEM,0,caid);            log.debug("created user: sceptest, foo123, C=SE, O=PrimeKey, CN=sceptest");        } catch (RemoteException re) {            if (re.detail instanceof DuplicateKeyException) {                userExists = true;            }        } catch (DuplicateKeyException dke) {            userExists = true;        }        if (userExists) {            log.debug("User sceptest already exists.");            usersession.setUserStatus(admin,"sceptest",UserDataConstants.STATUS_NEW, false);            log.debug("Reset status to NEW");        }            }