ClassLoader classLoader = ArquillianBundleExtensionLoader.class.getClassLoader();
if (classLoader instanceof BundleReference) {
// If this ExtensionLoader is used in the context of the installed bundle use a hard coded list of extensions
result = new ArrayList<LoadableExtension>();
result.add(new ContainerTestRemoteExtension());
result.add(new OSGiEnricherRemoteExtension());
result.add(new JMXExtension());
} else {
// Otherwise (e.g. from the client class path) fall back to the default ExtensionLoader
result = new JavaSPIExtensionLoader().load();
}