desc.setReturnType(returnType);
desc.setTraversalMode(responseAnnotation.traversalMode());
List<TypeDescription> extraTypeDescriptions = new ArrayList<TypeDescription>();
for (ExtraEntity extra : responseAnnotation.extra()) {
TypeDescription typeDescription = new TypeDescription();
typeDescription.setDocString(extra.description());
typeDescription.setType(reference(FlatPackTypes.createType(extra.type())));
extraTypeDescriptions.add(typeDescription);
}
desc.setExtraReturnData(extraTypeDescriptions.isEmpty() ? null : extraTypeDescriptions);
} else if (HasUuid.class.isAssignableFrom(method.getReturnType())) {
Type returnType = reference(method.getReturnType());