context.registerService(CustomUIDefenitions.class.getName(), customUIDefenitions, null);
Hashtable<String, String[]> properties1 = new Hashtable<String, String[]>();
properties1.put(URLConstants.URL_HANDLER_PROTOCOL, new String[]{"carbon"});
context.registerService(URLStreamHandlerService.class.getName(),
new CarbonProtocol(context), properties1);
Hashtable<String, String[]> properties3 = new Hashtable<String, String[]>();
properties3.put(URLConstants.URL_CONTENT_MIMETYPE, new String[]{"text/javascript"});
context.registerService(ContentHandler.class.getName(), new TextJavascriptHandler(),
properties3);