private Map<String, String> getTargetServerAttributesMapping( CacheRefreshConfiguration cacheRefreshConfigurationuration) { Map<String, String> result = new HashMap<String, String>(); for (CacheRefreshAttributeMapping attributeMapping : cacheRefreshConfigurationuration.getAttributeMapping()) { result.put(attributeMapping.getDestination(), attributeMapping.getSource()); } return result; }
private List<SimpleCustomProperty> toSimpleCustomProperties( List<CacheRefreshAttributeMapping> attributeMappings) { List<SimpleCustomProperty> result = new ArrayList<SimpleCustomProperty>(); for (CacheRefreshAttributeMapping attributeMapping : attributeMappings) { result.add( new SimpleCustomProperty( attributeMapping.getSource(), attributeMapping.getDestination())); } return result; }