protected void storeUserData(Admin admin, UserDataVO userdata, boolean clearpwd, int status) throws Exception {
log.trace(">storeUserData() username : " + userdata.getUsername());
// First we will look to see if there is an existing approval request pending for this user within the last hour
EditEndEntityApprovalRequest ear = new EditEndEntityApprovalRequest(userdata, clearpwd, userdata, admin,null,1,userdata.getCAId(),userdata.getEndEntityProfileId());
AddEndEntityApprovalRequest aar = new AddEndEntityApprovalRequest(userdata,clearpwd,admin,null,1,userdata.getCAId(),userdata.getEndEntityProfileId());
int approvalid = aar.generateApprovalId();
// Check if user already exists
if (userAdminSession.existsUser(admin, userdata.getUsername())) {
// a user already exists, so this is an edit entity request we are preparing
log.debug("User already exist, we will look for an edit end entity request");
approvalid = ear.generateApprovalId();