// index list
List<Map<String, Object>> indexList = FastList.newInstance();
for (int r = 0; r < entity.getIndexesSize(); r++) {
List<String> fieldNameList = FastList.newInstance();
ModelIndex index = entity.getIndex(r);
for (Iterator<ModelIndex.Field> fieldIterator = index.getFieldsIterator(); fieldIterator.hasNext();) {
fieldNameList.add(fieldIterator.next().getFieldName());
}
Map<String, Object> indexMap = FastMap.newInstance();
indexMap.put("name", index.getName());
indexMap.put("description", index.getDescription());
indexMap.put("fieldNameList", fieldNameList);
indexList.add(indexMap);
}
entityMap.put("entityName", entityName);