code: @Override
    public Schema getSchemaByKey(String key) throws SchemaRegistryException {
      try {
        return cachedSchemasByKeys.get(key);
      } catch (ExecutionException e) {
        throw new SchemaRegistryException(String.format("Schema with key %s cannot be retrieved", key), e);
      }
    }
docs: Get schema from schema registry by key
  
  @param key Schema key
  @return Schema with the corresponding key
  @throws SchemaRegistryException if failed to retrieve schema.