OCDataCompositionTemplateComposer templateComposer = rProc.createTemplateComposer();
OCDataCompositionTemplate template = templateComposer.execute(dataCompositionSchema, defaultSettings, details);
OCDataCompositionProcessor processor = rProc.createCompositionProcessor();
processor.initialize(template, structure, details, true);
OCDataCompositionResultSpreadsheetDocumentOutputProcessor spreadSheetProcessor = rProc.createDataCompositionResultSpreadsheetDocumentOutputProcessor();
OCSpreadsheetDocument spreadsheetDocument = rProc.createSpreadsheetDocument();
spreadsheetDocument.clear();
spreadSheetProcessor.setDocument(spreadsheetDocument);