try {
User user = APILocator.getUserAPI().loadByUserByEmail(email, APILocator.getUserAPI().getSystemUser(), false);
if (user != null) {
UserProxy userProxy = com.dotmarketing.business.APILocator.getUserProxyAPI().getUserProxy(user,APILocator.getUserAPI().getSystemUser(), false);
ChallengeQuestion challengeQuestion = ChallengeQuestionFactory.getChallengeQuestionById(Long
.parseLong(userProxy.getChallengeQuestionId()));
if (challengeQuestion != null)
result = challengeQuestion.getChallengeQuestionText();
} else {
return null;
}
} catch (Exception e) {
Logger.warn(CMSUsersWebAPI.class, e.toString());