public ProcessIdDescriptor getPid() { long pid = ProcessHandle.current().getPid(); return new ProcessIdDescriptor( pid, "ProcessHandle" ); }