Collection components = ComponentsEnvironment.getComponentBundles();
for (Iterator it = components.iterator(); it.hasNext();)
{
ComponentsBundle componentManager = (ComponentsBundle) it.next();
ComponentsXmlParser xmlParser = componentManager.getXmlParser();
String schemaURI;
String schemaResource = xmlParser.getInternalSchemaResource();
if (schemaResource != null)
{
schemaURI = getResourceURI(schemaResource);
}
else
{
schemaURI = xmlParser.getPublicSchemaLocation();
}
if (log.isDebugEnabled())
{
log.debug("Adding components schema at " + schemaURI);