code: public final int compareTo(CacheKey o)
     {
        int result = getClass().getName().compareTo(o.getClass().getName());
        if (result == 0 && ownerId != null)
        {
           // The key is of the same type and we assume that the distributed mode is enabled
           result = ownerId.compareTo(o.ownerId);
        }
        return result == 0 ? id.compareTo(o.id) : result;
     }
docs: {@inheritDoc}