public String FindFieldName(String name, AcroFields af) {
Hashtable items = af.Fields;
if (items.ContainsKey(name))
return name;
if (acroFieldsSom == null) {
if (items.Count == 0 && xfaPresent)
acroFieldsSom = new AcroFieldsSearch(datasetsSom.Name2Node.Keys);
else
acroFieldsSom = new AcroFieldsSearch(items.Keys);
}
if (acroFieldsSom.AcroShort2LongName.ContainsKey(name))
return (String)acroFieldsSom.AcroShort2LongName[name];
return acroFieldsSom.InverseSearchGlobal(Xml2Som.SplitParts(name));
}