private OSGiContainer getContainer(Context context, TestClass testClass)
{
BundleContext bundleContext = getBundleContext(context);
if (JMXTestRunner.getExecutionType() == ExecutionType.REMOTE)
return new RemoteOSGiContainer(bundleContext, testClass);
else
return new EmbeddedOSGiContainer(bundleContext, testClass);
}