Adding more appropriate .equals() method to DelegatingMethod