xmulticomponentfactory.createInstanceWithArgumentsAndContext(
"org.OpenOffice.InstanceInspector",
new Object[]{ xmulticomponentfactory }, xcomponentcontext );
// Create a new instance inspector
XInstanceInspector xinstanceinspector = ( XInstanceInspector )
UnoRuntime.queryInterface( XInstanceInspector.class,
objectInstanceInspector );
// Inspect the calc
xinstanceinspector.inspect( xcomponent );
// Remove instance inspector from the container
xsetMultiComponentFactory.remove( xsingleservicefactoryInstanceInspector );
System.out.println("\nPlease inspect the new spreadsheet document component." +