@Override
    public void validate(final String username, final String password, final ApiRequest request, final IPolicyContext context,
            final LDAPIdentitySource config, final IAsyncResultHandler<Boolean> handler) {
        try {
            doValidate(username, password, request, context, config, handler);
        } catch (Throwable e) {
            handler.handle(AsyncResultImpl.<Boolean>create(e));
        }
    }
@see io.apiman.gateway.engine.policies.auth.IIdentityValidator#validate(java.lang.String, java.lang.String, io.apiman.gateway.engine.beans.ApiRequest, io.apiman.gateway.engine.policy.IPolicyContext, java.lang.Object, io.apiman.gateway.engine.async.IAsyncResultHandler)
gateway/engine/policies/src/main/java/io/apiman/gateway/engine/policies/auth/LDAPIdentityValidator.java