Applying a Header before a template in Open API

Can I apply a header from Open API code before applying a template when generating using doc from scratch.

	IReportDiagramOption reportDiagramOption = IModelElementFactory.instance().createReportDiagramOption();
	reportDiagramOption.setUseWordDocumnentTemplate( true );
	reportDiagramOption.setWordDocumnentTemplatePath( coverPagePath );
	reportDiagramDetails.setReportDiagramOption( reportDiagramOption );

	reportDiagramDetails.addRDPageBreakTemplate( IModelElementFactory.instance().createRDPageBreakTemplate() );

	// APPLY A HEADER HERE DIRECTLY BEFORE APPLYING THE TEMPLATE BELOW
	// SIMILAR TO THE WAY I ADDED A PAGE BREAK ABOVE
	reportDiagramDetails.addSomeHeaderHere("This is the title maybe");

	IRDOOTemplate currentIRDOOTemplate = reportDiagramDetails.createRDOOTemplate();
	currentIRDOOTemplate.setTemplateURI(templateName);
	currentIRDOOTemplate.setSourceType(1);
	currentIRDOOTemplate.setSourceId(archiMateDiagram.getId());

	reportDiagramDetails.addTemplate(currentIRDOOTemplate);

	ApplicationManager.instance().getDocumentationManager().generateDocComposerWord( reportDiagramUIModel, new File( docName ), null);

You may create a IRDHtmlTemplate and specify the "class=Heading1" and wordstyleid="Heading1" in the content.

			IRDHtmlTemplate lText = reportDiagramDetails.createRDHtmlTemplate();
			lText.setText("<html><body><p><span class=\"Heading1\" wordstyleid=\"Heading1\">This is the title may be</span></body></html>");
			reportDiagramDetails.addTemplate(lText);