allFieldMappings.add(line1FieldMapping);
allFieldMappings.add(line2FieldMapping);
feedMapping.setAttributeFieldMappings(allFieldMappings.toArray(new AttributeFieldMapping[0]));
FeedMappingReturnValue mappingReturnValue = mappingService.mutate(
new FeedMappingOperation[] {new FeedMappingOperation(Operator.ADD, null, feedMapping)});
FeedMapping mutatedMapping = mappingReturnValue.getValue()[0];
System.out.printf("Updated field mappings for feedId %d and feedMappingId %d to:%n",
mutatedMapping.getFeedId(), mutatedMapping.getFeedMappingId());
for (AttributeFieldMapping fieldMapping : mutatedMapping.getAttributeFieldMappings()) {
System.out.printf(" feedAttributeId %d --> fieldId %d%n", fieldMapping.getFeedAttributeId(),