Map<PipelinedData, Node> parsePipelinedData(Gadget gadget, Document doc) {
List<Element> dataTags = SocialDataTags.getTags(doc, SocialDataTags.OSML_DATA_TAG);
Map<PipelinedData, Node> pipelineNodes = Maps.newHashMap();
for (Element n : dataTags) {
try {
PipelinedData pipelineData = new PipelinedData(n, gadget.getSpec().getUrl());
pipelineNodes.put(pipelineData, n);
} catch (SpecParserException e) {
// Leave the element to the client
if (LOG.isLoggable(Level.INFO)) {
LOG.logp(Level.INFO, classname, "parsePipelinedData", MessageKeys.FAILED_TO_PARSE_PRELOAD, new Object[] {gadget.getSpec().getUrl()});