ORB orb = (ORB) container.getComponentInstanceOfType(ORB.class);
MutablePicoContainer tempContainer = new DefaultPicoContainer(container);
try
{
TimeService timeService = TimeServiceHelper.narrow(orb.resolve_initial_references("TimeService"));
tempContainer.registerComponent(new CORBAObjectComponentAdapter(TimeService.class, timeService));
} catch (Exception e)
{
// ignored
}