private Schema convertFieldToSchema(final FieldAccess fieldAccess) { try { final Class<?> type = fieldAccess.type(); final Schema schema = mappings.get(type); final String description = getDescription(fieldAccess); if (schema != null) { if (description == null) { return schema; } else { return Schema.schemaWithDescription(schema, description); } } return convertFieldToComplexSchema(fieldAccess); } catch (Exception ex) { logger.warn("unable to convert field " + fieldAccess.name() + " from " + fieldAccess.declaringParent(), ex); return Schema.schemaWithFormat("error", "error.see.logs"); } }