}
}
private Injector createInjector(InjectorConfig config) {
List<Module> modules = new ArrayList<Module>();
InjectorConfig current = config;
do {
modules.addAll(current.getModules());
InjectorConfig parent = null;
if (current.hasParent()) {
String parentName = current.getParentName();
parent = configByName.get(parentName);
if (parent == null) {
LOG.info("Can't create {} as its ancestor {} can't be found",