*/
private AnnoMappingInfo initMapInfo(final FeatureStructure fs) {
final Type type = fs.getType();
final String annoName = type.getShortName().toLowerCase();
AnnoMappingInfo mapInfoTmp;
final UimaType ut = uimaTypeMap.get(type.getName());
if (this.mapAnnoMappingInfo.containsKey(type.getName())) {
mapInfoTmp = this.mapAnnoMappingInfo.get(type.getName()).deepCopy();
} else {
mapInfoTmp = new AnnoMappingInfo();
}
final AnnoMappingInfo mapInfo = mapInfoTmp;
if (ut != null)
mapInfo.setUimaTypeId(ut.getUimaTypeID());
// first see if the table name has been set in beans-uima.xml
if (Strings.isNullOrEmpty(mapInfo.getTableName())) {
// next see if the table name has been set in ref_uima_type
if (ut != null && !Strings.isNullOrEmpty(ut.getTableName()))
mapInfo.setTableName(ut.getTableName());
else
// default to anno_[short name]
mapInfo.setTableName("anno_" + annoName);
}
final List<Feature> features = type.getFeatures();