public abstract class Util {
public static Map getSDefLabelMap() throws IOException {
try {
HashMap labelMap = new HashMap();
FieldSearchQuery query = new FieldSearchQuery();
Condition[] conditions = new Condition[1];
conditions[0] = new Condition();
conditions[0].setProperty("fType");
conditions[0].setOperator(ComparisonOperator.fromValue("eq"));
conditions[0].setValue("D");
FieldSearchQuery.Conditions conds =
new FieldSearchQuery.Conditions();
conds.getCondition().addAll(Arrays.asList(conditions));
ObjectFactory factory = new ObjectFactory();
query.setConditions(factory.createFieldSearchQueryConditions(conds));
String[] fields = new String[] {"pid", "label"};
if (true) {
/* FIXME: find some other way to do this */
throw new UnsupportedOperationException("This operation uses obsolete field search semantics");
}