private void putInMap( HashMap<FunctionStateKey, FunctionStateKeyMapValue> map, FunctionStateKey callInfo, FieldRecord getFieldRecord) { FunctionStateKeyMapValue specialValue = map.get(callInfo); HashSet<FieldRecord> value = null; if (specialValue == null) { value = new HashSet<FieldRecord>(); specialValue = new FunctionStateKeyMapValue(callInfo, value); map.put(callInfo, specialValue); value.add(getFieldRecord); } else { value = (HashSet<FieldRecord>) specialValue.getValue(); value.add(getFieldRecord); } }