@Override
    public boolean equals(Object o) {
        if (this == o)
            return true;
        if (o == null || getClass() != o.getClass())
            return false;

        ConfigResource that = (ConfigResource) o;

        return type == that.type && name.equals(that.name);
    }
Returns true if this is the default resource of a resource type.
Resource name is empty for the default resource.
clients/src/main/java/org/apache/kafka/common/config/ConfigResource.java