dstGeostore.insert(statsData);
// Add attribute Published=true to srcGeostore, usefull for staging admin application
LOGGER.info("Adding attribute published=true to resource " + srcStatsData.getName());
RESTResource statsDataTmp = FlowUtil.copyResource(srcStatsData);
ShortAttribute published = new ShortAttribute(UNREDDLayerUpdate.Attributes.PUBLISHED.getName(), "true", DataType.STRING);
//DamianoG workaround for search in list due to ShortAttribute don't override equals method
boolean flag = true;
for(ShortAttribute el : statsDataTmp.getAttribute()){
if(el.toString().equals(published.toString())){
flag = false;
break;
}
}