LOG.warn("permission denied", e);
<BUG>throw new SAXException(e);
}</BUG>
if (doc == null && xpointer == null)
<BUG>throw new SAXException("document " + docUri + " not found");
</BUG>
boolean xqueryDoc = false;
if (doc != null && doc.getResourceType() == DocumentImpl.BINARY_FILE) {
xqueryDoc = "application/xquery".equals(doc.getMetadata().getMimeType());
}

LOG.warn("permission denied", e);
throw new ResourceError("Permission denied to read xincluded resource", e);
}
if (doc == null && xpointer == null)
throw new ResourceError("document " + docUri + " not found");
boolean xqueryDoc = false;
if (doc != null && doc.getResourceType() == DocumentImpl.BINARY_FILE) {
xqueryDoc = "application/xquery".equals(doc.getMetadata().getMimeType());
}
