private static void copySOAPHeaderBlock(SOAPFactory factory,
OMContainer targetParent,
SOAPHeaderBlock sourceSHB) {
// If already expanded or this is not an OMDataSourceExt, then
// create a copy of the OM Tree
OMDataSource ds = sourceSHB.getDataSource();
if (ds == null ||
sourceSHB.isExpanded() ||
!(ds instanceof OMDataSourceExt)) {
copySOAPHeaderBlock_NoDataSource(factory, targetParent, sourceSHB);
return;