@Override
    public void alterConnectorOffsets(String connName, Map<Map<String, ?>, Map<String, ?>> offsets, Callback<Message> callback) {
        if (offsets == null || offsets.isEmpty()) {
            callback.onCompletion(new ConnectException("The offsets to be altered may not be null or empty"), null);
            return;
        }
        modifyConnectorOffsets(connName, offsets, callback);
    }
Checks a given {@link ConfigInfos} for validation error messages and adds an exception
to the given {@link Callback} if any were found.

@param configInfos configInfos to read Errors from
@param callback callback to add config error exception to
@return true if errors were found in the config
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/AbstractHerder.java