// then make sure it's a file type we recognize
FileFactoryConfiguration config = null;
String source = "ServletUtils.getConfiguration("+path+",ServletContext[,depMode="+deprecationSupportMode+"])";
if (path.endsWith(".xml"))
{
config = new XmlFactoryConfiguration(deprecationSupportMode, source);
}
else if (path.endsWith(".properties"))
{
config = new PropertiesFactoryConfiguration(source);
}