Source:
private void downloadDescriptors() { try { logger.info("Loading remote components list from " + url); ComponentRESTClient client = new ComponentRESTClient(url, username, password); ComponentList components = client.getAllComponents(tenant, true); for(ComponentList.ComponentInfo component: components.getComponents()) { try { RemoteTransformerDescriptorImpl transformer = new RemoteTransformerDescriptorImpl( url, component.getName(), tenant, component.getSuperCategoryName(), component.getCategoryNames(), component.getIconData(), username, password); for(Map.Entry<String, ComponentList.PropertyInfo> propE: component.getProperties().entrySet()) { String propertyName = propE.getKey(); ComponentList.PropertyInfo propInfo = propE.getValue(); String className = propInfo.getClassName(); ConfiguredPropertyDescriptor propDesc; try { Class cl = findClass(className); transformer.addPropertyDescriptor(propDesc = new TypeBasedConfiguredPropertyDescriptorImpl( propertyName, propInfo.getDescription(), cl, propInfo.isRequired(), transformer, initAnnotations(component.getName(), propertyName, propInfo.getAnnotations()), propInfo.getDefaultValue())); } catch(Exception e) { logger.debug("Cannot initialize typed property descriptor '{}'.'{}'", component.getName(), propertyName, e); transformer.addPropertyDescriptor(propDesc = new JsonSchemaConfiguredPropertyDescriptorImpl( propertyName, propInfo.getSchema(), propInfo.isInputColumn(), propInfo.getDescription(), propInfo.isRequired(), transformer, initAnnotations(component.getName(), propertyName, propInfo.getAnnotations()), propInfo.getDefaultValue())); } } _transformerBeanDescriptors.put(transformer.getDisplayName(), transformer); } catch(Exception e) { logger.error("Cannot create remote component representation for: " + component.getName(), e); } } } catch(Exception e) { logger.error("Cannot get list of remote components on " + url, e); } }

Target:
private void downloadDescriptors() { try { logger.info("Loading remote components list from " + url); ComponentRESTClient client = new ComponentRESTClient(url, username, password); ComponentList components = client.getAllComponents(tenant, true); for(ComponentList.ComponentInfo component: components.getComponents()) { try { RemoteTransformerDescriptorImpl transformer = new RemoteTransformerDescriptorImpl( url, component.getName(), tenant, component.getSuperCategoryName(), component.getCategoryNames(), component.getIconData(), username, password); for(Map.Entry<String, ComponentList.PropertyInfo> propE: component.getProperties().entrySet()) { String propertyName = propE.getKey(); ComponentList.PropertyInfo propInfo = propE.getValue(); String className = propInfo.getClassName(); try { Class cl = findClass(className); transformer.addPropertyDescriptor(new TypeBasedConfiguredPropertyDescriptorImpl( propertyName, propInfo.getDescription(), cl, propInfo.isRequired(), transformer, initAnnotations(component.getName(), propertyName, propInfo.getAnnotations()), propInfo.getDefaultValue())); } catch(ClassNotFoundException e) { logger.debug("Cannot initialize typed property descriptor '{}'.'{}'", component.getName(), propertyName, e); transformer.addPropertyDescriptor(new JsonSchemaConfiguredPropertyDescriptorImpl( propertyName, propInfo.getSchema(), propInfo.isInputColumn(), propInfo.getDescription(), propInfo.isRequired(), transformer, initAnnotations(component.getName(), propertyName, propInfo.getAnnotations()), propInfo.getDefaultValue())); } } _transformerBeanDescriptors.put(transformer.getDisplayName(), transformer); } catch(Exception e) { logger.error("Cannot create remote component representation for: " + component.getName(), e); } } } catch(Exception e) { logger.error("Cannot get list of remote components on " + url, e); } }