* @return
*/
protected PasswordException fail( ResultResponse resultResponse,
PasswordPolicy passwordPolicy, ResultCodeEnum resultCode )
{
PasswordException exception = new PasswordException();
exception.setResultCode( resultCode );
if ( passwordPolicy != null
&& passwordPolicy.getResponse() != null
&& passwordPolicy.getResponse().getPasswordPolicyError() != null )
{
exception.setPasswordPolicyError( passwordPolicy.getResponse().getPasswordPolicyError() );
}
return exception;
}