if (subject == null) {
throw new SchemaNotFoundException("Schema not found for "
+ topicName);
}
SchemaEntry entry = subject.latest();
if (entry == null)
throw new SchemaNotFoundException("Schema not found for "
+ topicName);
return new SchemaDetails<Schema>(topicName, entry.getId(),
Schema.parse(entry.getSchema()));
}