}
}
} catch (AuthenticationException e) {
user.getAuthenticationStatus().reset();
throw new CredentialsDeniedException("Invalid credentials.");
} catch (com.esri.gpt.framework.context.ConfigurationException e) {
user.getAuthenticationStatus().reset();
throw new IdentityException(e.getMessage(),e);
} catch (NamingException e) {
user.getAuthenticationStatus().reset();