if (container != null) {
container.setProvisionResult(Container.PROVISION_DOWNLOADING);
}
ProcessManager procManager = processManager;
Map<String,String> initialEnvironmentVariables = new HashMap<String, String>();
Installation installation = createInstallation(procManager, container, options, metadata, initialEnvironmentVariables);
if (container != null) {
container.setProvisionResult(Container.PROVISION_FINALIZING);
}
if (installation != null) {
installation.getController().start();
}
return metadata;
}