File installDir = getInstallDirectory();
URL baseUrl = installDir.toURI().toURL();
File bootDir = getBootDirectory(installDir);
boolean online = ! Boolean.parseBoolean(System.getProperty("offline", Boolean.FALSE.toString()));
StandaloneRuntimeInfo runtimeInfo = new StandaloneRuntimeInfoImpl(baseUrl, installDir, installDir, online);
File applicationJar = new File(args[0]);
URL applicationURL = applicationJar.toURI().toURL();
String[] appArgs = new String[args.length - 1];
System.arraycopy(args, 1, appArgs, 0, appArgs.length);