private static final String URI_BASE = "xxx://foo.bar/path/to/";
public static void main(final String... args)
throws IOException, ProcessingException
{
final LoadingConfigurationBuilder builder
= LoadingConfiguration.newBuilder();
JsonNode node;
String uri;
node = Utils.loadResource("/split/fstab.json");
uri = URI_BASE + "fstab.json";
builder.preloadSchema(uri, node);
node = Utils.loadResource("/split/mntent.json");
uri = URI_BASE + "mntent.json";
builder.preloadSchema(uri, node);
final JsonSchemaFactory factory = JsonSchemaFactory.newBuilder()
.setLoadingConfiguration(builder.freeze()).freeze();
final JsonSchema schema
= factory.getJsonSchema(URI_BASE + "fstab.json");
final JsonNode good = Utils.loadResource("/fstab-good.json");