new Predicate("FeedId", PredicateOperator.EQUALS, new String[] {feedId.toString()})});
FeedMapping feedMapping = mappingService.get(selector).getEntries()[0];
// Remove the existing mapping (FeedMapping is immutable).
feedMapping = mappingService.mutate(new FeedMappingOperation[] {
new FeedMappingOperation(Operator.REMOVE, null, feedMapping)}).getValue(0);
// Create line 1 and line 2 attribute field mappings.
AttributeFieldMapping line1FieldMapping = new AttributeFieldMapping();
line1FieldMapping.setFeedAttributeId(line1FeedAttribute.getId());