Map<String, TypeFieldDescr> fields = td.getFields();
for (Iterator<Map.Entry<String, TypeFieldDescr>> iterator = fields.entrySet().iterator(); iterator.hasNext();) {
Map.Entry<String, TypeFieldDescr> en = iterator.next();
String fieldName = en.getKey();
TypeFieldDescr descr = en.getValue();
if (descr.getMetaAttributes().size() > 0) {
//can't do this yet
throw new DroolsParserException("using text");
}
FieldMetaModel fm = new FieldMetaModel(fieldName, descr.getPattern().getObjectType());
mm.fields.add(fm);
}
list.add(mm);
}