Replaced hashCode and equals generation using reflection by the commons lang reference implementation.