[Apache] Don't use expensive Equals