int (String debuggerId, String processName, String processParameters, int dispatchPort, String moduleDir) { int port = 0; try { port = findAvailableSocketPort(); processParameters = (processParameters == null || processParameters.isEmpty()) ? "" : processParameters + PARAMETERS_SEPARATOR; processParameters = processParameters + DEBUG_SERVER_PORT_KEY + "=" + port + PARAMETERS_SEPARATOR; processParameters = processParameters + RUNTIME_MODULE_DIR_KEY + "=" + moduleDir; send(debuggerId, processName, processParameters, dispatchPort); } catch (IOException e) { //noinspection CallToPrintStackTrace e.printStackTrace(); } return port; }