try { Method method = endSplashHandler.getClass().getMethod("getOutputStream", new Class[0]); Object outputStream = method.invoke(endSplashHandler, new Object[0]); if (outputStream instanceof OutputStream) { Dictionary osProperties = new Hashtable(); osProperties.put("name", "splashstream"); context.registerService(OutputStream.class.getName(), outputStream, osProperties); } } catch (Exception ex) {  }
	private static void publishSplashScreen(final Runnable endSplashHandler) {		// InternalPlatform now how to retrieve this later		Dictionary properties = new Hashtable();		properties.put("name", "splashscreen"); //$NON-NLS-1$ //$NON-NLS-2$		Runnable handler = new Runnable() {			public void run() {				StatsManager.doneBooting();				endSplashHandler.run();			}		};		context.registerService(Runnable.class.getName(), handler, properties);	}