protected void setValuesOffered( Set values) throws IllegalValueException {
public void setValuesOffered( Set values) throws IllegalValueException {
    protected void setValuesOffered( Set values) throws IllegalValueException {        if (values == null) {            throw new IllegalValueException("setValuesOffered must not be called with a null value. An empty set IS permitted.");        }        //Empty the valuesOffered set        valuesOffered.clear();                Set newValuesOffered = new LinkedHashSet(values);        Object o;        Iterator i = newValuesOffered.iterator();        while (i.hasNext()) {            o = i.next() ;            if ( possibleValues.contains(o) ) {                valuesOffered.add(o);            } else {                throw new IllegalValueException("The following value is not a permitted value: " + o.toString() );            }        }    }