JaxbXmlPart clonedPart = null;
if (part instanceof HeaderPart) {
clonedPart = new HeaderPart();
clonedPart.setJaxbElement(Context.getWmlObjectFactory().createHdr());
} else if (part instanceof FooterPart) {
clonedPart = new FooterPart();
clonedPart.setJaxbElement(Context.getWmlObjectFactory().createFtr());
}
// Populate it
List<Object> newContent = performOnInstance(input,