public class ComponentContext_Test {
public static void main(String args[]) {
try {
Hashtable table = new Hashtable();
table.put( "bla1", new ComponentContextEntry( null, new Integer( 1 ) ) );
XComponentContext xInitialContext = Bootstrap.createInitialComponentContext( table );
table = new Hashtable();
table.put( "bla2", new ComponentContextEntry( new Integer( 2 ) ) );
table.put( "bla3", new Integer( 3 ) );
XComponentContext xContext = new ComponentContext( table, xInitialContext );
XMultiComponentFactory xSMgr = xContext.getServiceManager();
Object o = xSMgr.createInstanceWithContext( "com.sun.star.loader.Java", xContext );