private static MapSqlParameterSource buildMapSqlParameterSource(final AuthorizationRequest request) {
        val parameters = new MapSqlParameterSource();
        parameters.addValue("method", request.getMethod());
        parameters.addValue("uri", request.getUri());
        parameters.addValue("namespace", request.getNamespace());
        parameters.addValue("principal", request.getPrincipal().getId());
        parameters.addValues(request.getContext());
        parameters.addValues(request.getPrincipal().getAttributes());
        return parameters;
    }
Build jdbc template.

@return the named parameter jdbc template
support/cas-server-support-heimdall/src/main/java/org/apereo/cas/heimdall/authorizer/resource/policy/JdbcAuthorizationPolicy.java