Runtime runtime = RuntimeLocator.getRuntime();
if (runtime == null) {
RuntimeFactory factory = new RuntimeFactory() {
@Override
public Runtime createRuntime(PropertiesProvider propertiesProvider) {
return new EmbeddedRuntime(propertiesProvider, null) {
@Override
protected ModuleEntriesProvider getDefaultEntriesProvider(Module module, Attachable context) {
return new ClassLoaderEntriesProvider(module);
}
};