//pid@hostname
public static String obtainProcessID() {
		//get process id
		String pname = ManagementFactory.getRuntimeMXBean().getName(); //pid@hostname
		String pid = pname.split("@")[0];
		// TODO: change this as soon as we switch to a java version >= 9
		// import java.lang.ProcessHandle;
		// pid = ProcessHandle.current().pid();
		return pid;
	}
public static String obtainProcessID() {
//get process id
String pname = ManagementFactory.getRuntimeMXBean().getName(); //pid@hostname
String pid = pname.split("@")[0];
// TODO: change this as soon as we switch to a java version >= 9
public static String obtainProcessID() {
//get process id
String pname = ManagementFactory.getRuntimeMXBean().getName(); //pid@hostname
String pid = pname.split("@")[0];
// TODO: change this as soon as we switch to a java version >= 9
// import java.lang.ProcessHandle;
// pid = ProcessHandle.current().pid();
return pid;
}
public static String obtainProcessID() {
//get process id
String pname = ManagementFactory.getRuntimeMXBean().getName(); //pid@hostname
String pid = pname.split("@")[0];
// TODO: change this as soon as we switch to a java version >= 9
// import java.lang.ProcessHandle;
// pid = ProcessHandle.current().pid();
return pid;
}