JsonSchema buildJsonSchema(final String uri)
throws ProcessingException
{
final JsonRef ref = JsonRef.fromString(uri);
if (!ref.isLegal())
throw new JsonReferenceException(new ProcessingMessage()
.setMessage(BUNDLE.getMessage("illegalJsonRef")));
final SchemaTree tree
= loader.get(ref.getLocator()).setPointer(ref.getPointer());
if (tree.getNode().isMissingNode())
throw new JsonReferenceException(new ProcessingMessage()
.setMessage(BUNDLE.getMessage("danglingRef")));
return new JsonSchema(processor, tree, reportProvider);
}