@Reflectable
	public static Boolean isActivePID(Integer pid)
	{
		Map<String, List<String>> result = null;
		String windows_cmds[] = SyscallCreatorUtils.generate("tasklist /FO CSV | findstr \"java\"");
		String unix_cmds[] = SyscallCreatorUtils.generate("ps -A -o pid,command | grep -i \"java\"" );
		
		try {
			
			if( OS == OS_ENUM.WINDOWS )		
				result = ProcessUtils.run(windows_cmds);
			else if( OS == OS_ENUM.MAC || OS == OS_ENUM.LINUX )
				result = ProcessUtils.run(unix_cmds);
			else
				result = new HashMap<String, List<String>>();
			
			for( int i = 0; i < result.get("output").size(); i++ )
				if( result.get("output").get(i).contains("" + pid) )
					return true;

		} catch (InterruptedException e) {
			trace(STDERR, e);
			return false;
		} catch (IOException e) {
			trace(STDERR, e);
			return false;
		}
		
		return false;
	}