ReferenceResolver resolver = new RemoteReferenceResolver(baseURI, builder);
Policy resolved = registry.lookup(ref.getURI());
if (null != resolved) {
return resolved;
}
return resolver.resolveReference(ref.getURI());
}
protected boolean isExternal(PolicyReference ref) {
return !ref.getURI().startsWith("#");
}