}
public Configuration buildConfiguration(String namespaceUri, String id, Configuration parent) {
ConfigurationMetadata model = getModel(namespaceUri);
if (null == model) {
throw new ConfigurationException(new Message("UNKNOWN_NAMESPACE_EXC", BUNDLE, namespaceUri));
}
/*
if (parent != null && !isValidChildConfiguration(model, parent)) {
throw new ConfigurationException(new Message("INVALID_CHILD_CONFIGURATION",
BUNDLE, namespaceUri,
parent.getModel().getNamespaceURI()));
}
*/
if (parent == null && !isValidTopConfiguration(model, parent)) {
throw new ConfigurationException(new Message("INVALID_TOP_CONFIGURATION",
BUNDLE, namespaceUri));
}
Configuration c = new CeltixConfigurationImpl(model, id, parent);
if (null == parent) {