private NamedFactory createChildFactory(final String name, final Class type) {
assert name != null;
assert type != null;
if (type == Parent.class) {
return new ParentFactory();
}
if (type == Dependency.class) {
return new DependencyFactory();
}
if (type == Exclusion.class) {