removed the use of the class java.util.Objects that is available only on jdk 1.7