// 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 fieldIterator = index.getIndexFieldsIterator(); fieldIterator.hasNext();) {
fieldNameList.add((String) fieldIterator.next());
}
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);