void (ProcessHandler handler) { if (handler.getProcessInput() == null) { return; } OutputStreamWriter writer = new OutputStreamWriter(handler.getProcessInput(), StandardCharsets.UTF_8); try { writer.write(TokenReader.PREFIX + MavenRemoteObjectWrapper.ourToken); writer.write(System.lineSeparator()); writer.flush(); MavenLog.LOG.info("Sent token to maven server"); } catch (IOException e) { MavenLog.LOG.warn("Cannot send token to maven server", e); } }