Source:
private void applyProperties(final ComponentBuilder builder, final ConfiguredPropertiesType configuredPropertiesType, final MetadataProperties metadataPropertiesType, final StringConverter stringConverter, final Map<String, String> variables) { if (configuredPropertiesType != null) { final List<Property> properties = configuredPropertiesType.getProperty(); final ComponentDescriptor<?> descriptor = builder.getDescriptor(); Map<String, String> removedProperties = new HashMap<>(); for (Property property : properties) { final String name = property.getName(); if (isRemovedProperty(descriptor, name)) { removedProperties.put(name, getValue(property)); } else { final ConfiguredPropertyDescriptor configuredProperty = descriptor.getConfiguredProperty(name); if (configuredProperty == null) { throw new ComponentConfigurationException("No such property: " + name); } String stringValue = getValue(property); if (stringValue == null) { String variableRef = property.getRef(); if (variableRef == null) { throw new IllegalStateException("Neither value nor ref was specified for property: " + name); } stringValue = variables.get(variableRef); if (stringValue == null) { throw new ComponentConfigurationException("No such variable: " + variableRef); } builder.getMetadataProperties().put(DATACLEANER_JAXB_VARIABLE_PREFIX + configuredProperty .getName(), variableRef); } final Converter<?> customConverter = configuredProperty.createCustomConverter(); final Object value = stringConverter.deserialize(stringValue, configuredProperty.getType(), customConverter); logger.debug("Setting property '{}' to {}", name, value); builder.setConfiguredProperty(configuredProperty, value); } } processRemovedProperties(builder, stringConverter, descriptor, removedProperties); } if (metadataPropertiesType != null) { final List<org.datacleaner.job.jaxb.MetadataProperties.Property> propertyList = metadataPropertiesType .getProperty(); for (org.datacleaner.job.jaxb.MetadataProperties.Property property : propertyList) { final String name = property.getName(); final String value = property.getValue(); builder.setMetadataProperty(name, value); } } }

Target:
private void applyProperties(final ComponentBuilder builder, final ConfiguredPropertiesType configuredPropertiesType, final MetadataProperties metadataPropertiesType, final StringConverter stringConverter, final Map<String, String> variables) { if (configuredPropertiesType != null) { final List<Property> properties = configuredPropertiesType.getProperty(); final ComponentDescriptor<?> descriptor = builder.getDescriptor(); final Map<String, String> removedProperties = new HashMap<>(); for (Property property : properties) { final String name = property.getName(); if (isRemovedProperty(descriptor, name)) { removedProperties.put(name, getValue(property)); } else { final ConfiguredPropertyDescriptor configuredProperty = descriptor.getConfiguredProperty(name); if (configuredProperty == null) { throw new ComponentConfigurationException("No such property: " + name); } String stringValue = getValue(property); if (stringValue == null) { String variableRef = property.getRef(); if (variableRef == null) { throw new IllegalStateException("Neither value nor ref was specified for property: " + name); } stringValue = variables.get(variableRef); if (stringValue == null) { throw new ComponentConfigurationException("No such variable: " + variableRef); } builder.getMetadataProperties().put(DATACLEANER_JAXB_VARIABLE_PREFIX + configuredProperty .getName(), variableRef); } final Converter<?> customConverter = configuredProperty.createCustomConverter(); final Object value = stringConverter.deserialize(stringValue, configuredProperty.getType(), customConverter); logger.debug("Setting property '{}' to {}", name, value); builder.setConfiguredProperty(configuredProperty, value); } } processRemovedProperties(builder, stringConverter, descriptor, removedProperties); } if (metadataPropertiesType != null) { final List<org.datacleaner.job.jaxb.MetadataProperties.Property> propertyList = metadataPropertiesType .getProperty(); for (org.datacleaner.job.jaxb.MetadataProperties.Property property : propertyList) { final String name = property.getName(); final String value = property.getValue(); builder.setMetadataProperty(name, value); } } }