String beanName = displayerType + "_editor";
Collection<IOCBeanDef> beans = beanManager.lookupBeans(beanName);
if (beans == null || beans.isEmpty()) throw new RuntimeException(displayerSettings.getType().toString().toLowerCase() + " settings editor not found.");
if (beans.size() > 1) throw new RuntimeException("Multiple settings editors implementations found for: " + displayerType);
IOCBeanDef beanDef = beans.iterator().next();
DisplayerSettingsEditor settingsEditor = (DisplayerSettingsEditor ) beanDef.getInstance();
settingsEditor.setDisplayerSettings(displayerSettings);
return settingsEditor;
}