676677678679680681682683684
private Schema getSchema(Type type, Map<String,Schema> names) { try { return createSchema(type, names); } catch (AvroTypeException e) { // friendly exception throw new AvroTypeException("Error getting schema for "+type+": " +e.getMessage(), e); } }