You cannot use a static reference here as multiple apps deployed in an app server might conflict. `Method`'s comparison method uses `==` on the declaring class.