aProperties[1] = Properties.createProperty("DataSource", curTableDescriptor.xDataSource);
aProperties[2] = Properties.createProperty("CommandType", new Integer(CommandType.TABLE));
aProperties[3] = Properties.createProperty("Command", scomposedtablename);
XInitialization xInitialization = (XInitialization) UnoRuntime.queryInterface(XInitialization.class, oFormWizard);
xInitialization.initialize(aProperties);
XJobExecutor xJobExecutor = (XJobExecutor) UnoRuntime.queryInterface(XJobExecutor.class, oFormWizard);
xJobExecutor.trigger("start");
XPropertySet prop = (XPropertySet)UnoRuntime.queryInterface(XPropertySet.class,xJobExecutor);
components[0] = (XComponent)prop.getPropertyValue("Document");
components[1] = (XComponent)prop.getPropertyValue("DocumentDefinition");
} catch (Exception e) {
e.printStackTrace(System.out);