Collection<LoadableExtension> result;
ClassLoader classLoader = ArquillianExtensionLoader.class.getClassLoader();
if (classLoader instanceof ModuleClassLoader) {
// If this ExtensionLoader is used in the context of the arquillian-service use a hard coded list of extensions
result = Arrays.asList(new ContainerTestRemoteExtension(), new OSGiEnricherExtension(), new JMXExtension());
} else {
// Otherwise (e.g. from the client class path) fall back to the default ExtensionLoader
result = new JavaSPIExtensionLoader().load();
}