PipelineContext context = pipelineService.createContext();
context.put(PipelineCode.LAYER_ID_KEY, layerId);
context.put(PipelineCode.LAYER_KEY, layer);
context.put(PipelineCode.FILTER_KEY, filter);
context.put(PipelineCode.ATTRIBUTE_NAME_KEY, attributeName);
GetAttributesContainer container = new GetAttributesContainer();
pipelineService.execute(PipelineCode.PIPELINE_GET_ATTRIBUTES, layerId, context, container);
log.debug("saveOrUpdate done on layer {}, time {}s", layerId, (System.currentTimeMillis() - ts) / 1000.0);
return container.getAttributes();
}