CSVMessagePartMapping parentMapping = null;
Element mappingElement = XMLUtil.findChildElement(element, CSV_XML_TAG_NAME);
//Compute current level
int nThisLevel;
CompositeMessagePart parentPart = part.getParent();
if (parentPart == null)
{
nThisLevel = 0;
}
else
{
//Require sequential aggregation mode
if (parentPart.getAggregation() != CompositeMessagePart.SEQUENTIAL)
{
throw new MetadataException("err.meta.integration.nonSequentialAggregation",
new Object[]{CSV_XML_TAG_NAME, msg.getName()});
}
parentMapping = (CSVMessagePartMapping)parentPart.getMapping();
nThisLevel = parentMapping.getLevel() + 1;
}
//Mapping is required on root element
if (nThisLevel <= 0)