for (int i = 0; i < tModelInstanceInfo.size(); i++) {
TModelInstanceInfo t = new TModelInstanceInfo();
t.setTModelKey(tModelInstanceInfo.get(i).getTModelKey());
t.getDescription().addAll(MapDescription(tModelInstanceInfo.get(i).getDescription()));
if (tModelInstanceInfo.get(i).getInstanceDetails() != null) {
t.setInstanceDetails(new InstanceDetails());
t.getInstanceDetails().getDescription().addAll(MapDescription(tModelInstanceInfo.get(i).getInstanceDetails().getDescription()));
t.getInstanceDetails().setInstanceParms(StringEscapeUtils.escapeXml(tModelInstanceInfo.get(i).getInstanceDetails().getInstanceParms()));
t.getInstanceDetails().setOverviewDoc(MapOverviewDoc(tModelInstanceInfo.get(i).getInstanceDetails().getOverviewDoc()));
}
r.add(t);