int () { //TODO should be reworked after merging according to jsch-nio try { GeneralCommandLine commandLine = new GeneralCommandLine(Arrays.asList("id", "-u")); String uid = myHost.getProcessOutput(commandLine).getStdout().trim(); try { return Integer.parseInt(uid); } catch (NumberFormatException e) { LOGGER.warn("Error while parsing user id from " + uid, e); return -1; } } catch (ExecutionException ex) { LOGGER.warn("Error while getting user id", ex); return -1; } }