private com.github.fge.jsonschema.main.JsonSchema getValidator() throws ProcessingException {
        if (validator == null) {
            synchronized (this) {
                if (validator == null) {
                    ValidationConfigurationBuilder cfgBuilder = ValidationConfiguration.newBuilder();
                    cfgBuilder.addLibrary("http://brutusin.org/json/json-schema-spec", DraftV3Library.get());
                    validator = JsonSchemaFactory.newBuilder().setValidationConfiguration(cfgBuilder.freeze()).freeze().getJsonSchema(getNode());
                }
            }
        }
        return validator;
    }
private com.github.fge.jsonschema.main.JsonSchema getValidator() throws ProcessingException {
        if (validator == null) {
            synchronized (this) {
                if (validator == null) {
                    ValidationConfigurationBuilder cfgBuilder = ValidationConfiguration.newBuilder();
                    cfgBuilder.addLibrary("http:
                    validator = JsonSchemaFactory.newBuilder().setValidationConfiguration(cfgBuilder.freeze()).freeze().getJsonSchema(getNode());
                }
            }
        }
        return validator;
    }
private com . github . fge . jsonschema . main . JsonSchema getValidator ( ) throws ProcessingException { if ( validator == null ) { synchronized ( this ) { if ( validator == null ) { ValidationConfigurationBuilder cfgBuilder = ValidationConfiguration . newBuilder ( ) ; cfgBuilder . addLibrary ( "http://brutusin.org/json/json-schema-spec" , DraftV3Library . get ( ) ) ; validator = JsonSchemaFactory . newBuilder ( ) . setValidationConfiguration ( cfgBuilder . freeze ( ) ) . freeze ( ) . getJsonSchema ( getNode ( ) ) ; } } } return validator ; }
Lazy intialization of validator instance

@return
@throws ProcessingException
Lazy intialization of validator instance