Use Objects.equals() in yang-model-util