@Override
public void createEntity(EntityType type, Folder parent, boolean openEditor, Callback callback) {
checkArgument(type != EntityType.Folder, "Folders cannot be created through this factory");
IntegrationEntityFactoryCallback factoryCallback = createFactoryCallback(type, callback, openEditor);
IntegrationEntityFactory factory = getEntityFactory(type);
factory.createEntity(parent, factoryCallback);
}
private IntegrationEntityFactory getEntityFactory(EntityType type) {
EntityConfig config = view.getEntityConfig(type);
return config.getFactory();