* Write the Share module XML in the given conversion to the given stream.
*/
public void writeShareExtensionModule(OutputStream out, WorkflowDefinitionConversion conversion) throws IOException {
Extension extension = AlfrescoConversionUtil.getExtension(conversion);
try {
ModuleDeployment toMarshall = new ModuleDeployment();
toMarshall.setModule(extension.getModules().get(0).getId());
// In case the configuration should NOT be exported as a module, wrap the configurations
// in a "alfresco-configuration" element instead
Marshaller marshaller = moduleJaxbContext.createMarshaller();
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
marshaller.marshal(toMarshall, out);