throw new DataSourceException("Error parsing feature type for " + featureTypeName, e);
}
XSDElementDeclaration elementDeclaration;
elementDeclaration = schemaIndex.getElementDeclaration(featureTypeName);
schemaIndex.destroy();
if (elementDeclaration == null && !ignoreMissingElementDeclaration) {
throw new DataSourceException("No XSDElementDeclaration found for " + featureTypeName);
}
return elementDeclaration;
}