EjbcaWSHelper ejbhelper = new EjbcaWSHelper(wsContext, authorizationSession, caAdminSession, certificateProfileSession, certificateStoreSession, endEntityProfileSession, hardTokenSession, userAdminSession);
Admin admin = ejbhelper.getAdmin();
// If password is empty we can generate a big random one to use instead
if (StringUtils.isEmpty(password)) {
AllPrintableCharPasswordGenerator gen = new AllPrintableCharPasswordGenerator();
password = gen.getNewPassword(15, 20);
log.debug("Using a long random password");
}
// get and old status that we can remember so we can reset status if this fails in the last step
int olduserStatus = UserDataConstants.STATUS_GENERATED;
final IPatternLogger logger = TransactionLogger.getPatternLogger();