I think this should be obj == null || !(obj instanceof CounterRollup)