int offset = pQName.indexOf(':');
if (offset > 0) {
String prefix = pQName.substring(0, offset);
// The list of extension prefixes is in the outermost schema.
String[] prefixes;
XSLogicalParser xsParser = getContext().getXSLogicalParser();
if (xsParser == null) {
// Just syntax parsing, take this schema as outermost instance.
JAXBXsSchema jaxbXsSchema = (JAXBXsSchema) getXsESchema();
prefixes = jaxbXsSchema.getJaxbExtensionBindingPrefixes();
} else {
prefixes = ((JAXBXsSchema) xsParser.getSyntaxSchemas()[0]).getJaxbExtensionBindingPrefixes();
}
for (int i = 0; i < prefixes.length; i++) {
if (prefixes[i].equals(prefix)) {
return new DefaultHandler();