for (java.util.Map.Entry<String, ContainerClustersProperties> entry : syap.getContainercluster().getClusters().entrySet()) {
SpringYarnAppmasterLocalizerProperties props = entry.getValue().getLocalizer();
if (props == null) {
continue;
}
BootLocalResourcesSelector selector = new BootLocalResourcesSelector(Mode.CONTAINER);
if (StringUtils.hasText(props.getZipPattern())) {
selector.setZipArchivePattern(props.getZipPattern());
}
if (props.getPropertiesNames() != null) {
selector.setPropertiesNames(props.getPropertiesNames());
}
if (props.getPropertiesSuffixes() != null) {
selector.setPropertiesSuffixes(props.getPropertiesSuffixes());
}
selector.addPatterns(props.getPatterns());
selectors.put(entry.getKey(), selector);
}
}
BootLocalResourcesSelector selector = new BootLocalResourcesSelector(Mode.CONTAINER);
if (StringUtils.hasText(syalp.getZipPattern())) {
selector.setZipArchivePattern(syalp.getZipPattern());
}
if (syalp.getPropertiesNames() != null) {
selector.setPropertiesNames(syalp.getPropertiesNames());
}
if (syalp.getPropertiesSuffixes() != null) {
selector.setPropertiesSuffixes(syalp.getPropertiesSuffixes());
}
selector.addPatterns(syalp.getPatterns());
return new BootMultiLocalResourcesSelector(selector, selectors);
}