Object objPFID = findValueByStringKey(gkey_pfid, groupKey);
if( objPFID == null )
throw new SdkException("Invalid group key.");
SearchAttributeSet set = findAttributeSetByPFID(sets, Integer.parseInt((String)objPFID));
SearchAttribute attr = new SearchAttribute();
attr.setAttributeID(Integer.parseInt(aid));
Value val = new Value();
val.setValueID(new Integer(valStr));
attr.addValue(val);
set.add(attr);
}
return sets;
}