Factory fact1 = Utils.getFactoryByName(getContext(), "COMPO-SimpleCheckServiceProvider");
Properties props = new Properties();
props.put("instance.name","client");
ComponentInstance client = null;
try {
client = fact1.createComponentInstance(props, sc2);
} catch(Exception e) { fail("Cannot instantiate the client : " + e.getMessage()); }
Factory fact2 = Utils.getFactoryByName(getContext(), "COMPO-FooProviderType-1");
Properties props2 = new Properties();
props2.put("instance.name","provider");