if (idx != -1) {
if (idx < path.length() - 1)
anchor = path.substring(idx + 1);
path = path.substring(0, idx);
if (path.length() == 0)
throw new MissingResourceException(_loc.get("anchor-only",
props).getMessage(), Configurations.class.getName(),
props);
}
File file = new File(path);
if (((Boolean) AccessController.doPrivileged(J2DoPrivHelper
.isFileAction(file))).booleanValue())
provider = ProductDerivations.load(file, anchor, null);
else {
file = new File("META-INF" + File.separatorChar + path);
if (((Boolean) AccessController.doPrivileged(J2DoPrivHelper
.isFileAction(file))).booleanValue())
provider = ProductDerivations.load(file, anchor, null);
else
provider = ProductDerivations.load(path, anchor, null);
}
if (provider != null)
provider.setInto(conf);
else
throw new MissingResourceException(_loc.get("no-provider",
props).getMessage(), Configurations.class.getName(),
props);
} else {
provider = ProductDerivations.loadDefaults(null);
if (provider != null)