public boolean isVersionDeprecated(short apiVersion) {
        return apiVersion >= messageType.lowestDeprecatedVersion() && apiVersion <= messageType.highestDeprecatedVersion();
    }
indicates whether the API is enabled for forwarding
clients/src/main/java/org/apache/kafka/common/protocol/ApiKeys.java