File bytemanJar = new File(bytemanLib, BytemanConfiguration.BYTEMAN_JAR);
GenerateScriptUtil.copy(bytemanInputJar, new FileOutputStream(bytemanJar));
VirtualMachine vm = VirtualMachine.attach(pid);
String agentProperties = config.agentProperties();
vm.loadAgent(bytemanJar.getAbsolutePath(), "listener:true,port:" + config.containerAgentPort() + (agentProperties != null ? ",prop:" + agentProperties : ""));
vm.detach();
} catch (IOException e) {
throw new RuntimeException("Could not write byteman.jar to disk", e);
} catch (Exception e) {