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() {
	
		String pname = ManagementFactory.getRuntimeMXBean().getName();
		String pid = pname.split("@")[0];
	
	
	
		return pid;
	}
public static string obtainprocessid() { string pname = managementfactory.getruntimemxbean().getname(); string pid = pname.split("@")[0]; return pid; }