}
}
private void initIncludes(DriftDescriptor descriptor, DriftDefinitionTemplate template) {
if (descriptor.getIncludes() != null && descriptor.getIncludes().getInclude().size() > 0) {
Configuration config = template.getConfiguration();
PropertyList includes = new PropertyList(DriftConfigurationDefinition.PROP_INCLUDES);
for (DriftFilterDescriptor include : descriptor.getIncludes().getInclude()) {
PropertyMap includeMap = new PropertyMap(DriftConfigurationDefinition.PROP_INCLUDES_INCLUDE);
includeMap.put(new PropertySimple(DriftConfigurationDefinition.PROP_PATH, include.getPath()));
includeMap.put(new PropertySimple(DriftConfigurationDefinition.PROP_PATTERN, include.getPattern()));
includes.add(includeMap);
}
config.put(includes);
}
}