boolean allowTerminate = false;
if (configuration != null) {
allowTerminate = configuration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_ALLOW_TERMINATE, false);
}
subMonitor.worked(1);
subMonitor.subTask(LaunchingMessages.SocketAttachConnector_Establishing_connection____2);
try {
VirtualMachine vm = connector.attach(map);
String vmLabel = constructVMLabel(vm, host, portNumberString, configuration);
IDebugTarget debugTarget= DroolsDebugModel.newDebugTarget(launch, vm, vmLabel, null, allowTerminate, true);
launch.addDebugTarget(debugTarget);