throws Exception {
XEmbeddedObjectSupplier xembeddedobjectsupplier = (XEmbeddedObjectSupplier)
UnoRuntime.queryInterface(XEmbeddedObjectSupplier.class, xtablechart);
XInterface xinterface = xembeddedobjectsupplier.getEmbeddedObject();
XChartDocument xchartdocument = (XChartDocument)UnoRuntime.queryInterface(
XChartDocument.class, xinterface);
XDiagram xdiagram = (XDiagram) xchartdocument.getDiagram();
XMultiServiceFactory xmultiservicefactory = (XMultiServiceFactory)
UnoRuntime.queryInterface( XMultiServiceFactory.class, xchartdocument );
Object object = xmultiservicefactory.createInstance( stringType );
xdiagram = (XDiagram) UnoRuntime.queryInterface(XDiagram.class,object);
XPropertySet xpropertyset = ( XPropertySet ) UnoRuntime.queryInterface(
XPropertySet.class, xdiagram );
xpropertyset.setPropertyValue( "Dim3D", new Boolean( booleanIs3D ) );
xchartdocument.setDiagram(xdiagram);
}