Added Thread State to java.