Document sourceDocument,
String navigationTitle,
Map parameters) throws DocumentBuildException, PublicationException {
String contentsURI = sourceDocument.getSourceURI();
add(document, sourceDocument.getResourceType(), navigationTitle, parameters, contentsURI);
MetaDataManager mgr = document.getMetaDataManager();
MetaDataManager srcMgr = sourceDocument.getMetaDataManager();
mgr.getLenyaMetaData().replaceBy(srcMgr.getLenyaMetaData());
mgr.getDublinCoreMetaData().replaceBy(srcMgr.getDublinCoreMetaData());
mgr.getCustomMetaData().replaceBy(srcMgr.getCustomMetaData());
}