profile.setSecurityQuestionAnswer(profileEntity.getEncryptedSecurityAnswer()); profile.setType(type == null ? OrcidType.USER : type); profile.setGroupType(profileEntity.getGroupType() != null ? MemberType.valueOf(profileEntity.getGroupType()) : null); profile.setVerificationCode(profileEntity.getEncryptedVerificationCode()); profile.setLocked(profileEntity.getRecordLocked());