private ClassTemplateSpec getDereferencedType(CustomInfoSpec customInfo, ClassTemplateSpec fallback) { if (customInfo != null) { DataSchema refSchema = customInfo.getCustomSchema().getDereferencedDataSchema(); return ClassTemplateSpec.createFromDataSchema(refSchema); } else { return fallback; } }
ClassTemplateSpec fieldType; if (customInfo != null) { DataSchema refSchema = customInfo.getCustomSchema().getDereferencedDataSchema(); fieldType = ClassTemplateSpec.createFromDataSchema(refSchema); String coercer = customInfo.getCoercerClass().getClassName();
data.put("ref", buildData(parentSchemas, schema.getDereferencedDataSchema(), spec));