} else {
final int port = Integer.parseInt(connector.substring(pos + 1));
for (int i = 0; i < vmm.attachingConnectors().size(); i++) {
final AttachingConnector ac = (AttachingConnector) vmm.attachingConnectors().get(i);
if (ac.name().equals("com.sun.jdi.SocketAttach")) {
final Map connectorArgs = ac.defaultArguments();
((Argument) connectorArgs.get("hostname")).setValue(connector.substring(0, pos));
((Argument) connectorArgs.get("port")).setValue("" + port);
vm = ac.attach(connectorArgs);
break;
}