}
DocumentImpl doc = null;
try {
doc = (DocumentImpl) serializer.broker.getXMLResource(docUri);
if(doc != null && !doc.getPermissions().validate(serializer.broker.getUser(), Permission.READ))
<BUG>throw new PermissionDeniedException("Permission denied to read xincluded resource");
</BUG>
} catch (PermissionDeniedException e) {
LOG.warn("permission denied", e);
<BUG>throw new SAXException(e);
}</BUG>
if (doc == null && xpointer == null)

}
} else if (!inFallback || error != null) {
receiver.startElement(qname, attribs);
}
