return result;
if (typeInfo.isEnum())
return generateEnum((EnumInfo) typeInfo);
ClassInfo annotationType = isAnnotation(typeInfo);
if (annotationType != null)
return generateAnnotation(annotationType);
if (typeInfo.isArray())
return generateArray((ArrayInfo) typeInfo);
if (typeInfo.isCollection())
return generateCollection((ClassInfo) typeInfo);
if (typeInfo.isMap())
{
// See if this is a Map<String,?> type
ClassInfo classInfo = (ClassInfo) typeInfo;
TypeInfo[] types = classInfo.getActualTypeArguments();
if (types != null)
{
TypeInfo keyType = types[0];
TypeInfo valueType = types[1];
if(keyType.getName().equals(String.class.getName()))