if ( ( e instanceof UnresolvedAddressException ) && ( e.getMessage() == null ) )
{
message.append( "Hostname '" );
message.append( config.getLdapHost() );
message.append( "' could not be resolved." );
throw new InvalidConnectionException( message.toString(), e );
}
// Default case
message.append( e.getMessage() );
throw new InvalidConnectionException( message.toString(), e );
}
return false;
}