change the comparison of class in Java-to-Stratosphere type