private boolean allowedToRegister(Object component) {
        if (resourceConfig.isRegistered(component)) {
            log.warn("The resource {} is already registered", component);
            return NOT_ALLOWED_TO_REGISTER;
        }
        return ALLOWED_TO_REGISTER;
    }
The implementation delegates to {@link ResourceConfig} so that we can handle duplicate
registrations deterministically by not re-registering them again.
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/rest/ConnectRestConfigurable.java