public static final void substitute(IData pipeline) throws ServiceException { // --- <<IS-START(substitute)>> --- // @subtype unknown // @sigtype java 3.5 IDataCursor cursor = pipeline.getCursor(); try { IData dup = tundra.document.substitute(pipeline, pipeline, true); tundra.document.clear(pipeline, null); IDataUtil.merge(dup, pipeline); } finally { cursor.destroy(); } // --- <<IS-END>> --- }
// --- <<IS-START-SHARED>> --- // merges the contents of the given document into the given pipeline public static void merge(IData target, IData source) { if (target != null && source != null) IDataUtil.merge(source, target); }