if (!profile.useAutoGeneratedPasswd() && StringUtils.isNotEmpty(newpassword)) {
profile.doesUserFullfillEndEntityProfile(username, userDataVO.getPassword(), dn, altName, dirattrs, userDataVO.getEmail(),
userDataVO.getCertificateProfileId(), clearpwd, (type & SecConst.USER_KEYRECOVERABLE) != 0, (type & SecConst.USER_SENDNOTIFICATION) != 0,
userDataVO.getTokenType(), userDataVO.getHardTokenIssuerId(), caid, ei);
} else {
profile.doesUserFullfillEndEntityProfileWithoutPassword(username, dn, altName, dirattrs, userDataVO.getEmail(),
userDataVO.getCertificateProfileId(), (type & SecConst.USER_KEYRECOVERABLE) != 0, (type & SecConst.USER_SENDNOTIFICATION) != 0,
userDataVO.getTokenType(), userDataVO.getHardTokenIssuerId(), caid, ei);
}
} catch (UserDoesntFullfillEndEntityProfile e) {
final String msg = intres.getLocalizedMessage("ra.errorfullfillprofile", Integer.valueOf(endEntityProfileId), dn, e.getMessage());