ObjectInputStream.GetField fields = in.readFields();
Vector vector = (Vector)fields.get(serialName, null);
if (fields.defaulted(serialName))
{
throw new StreamCorruptedException("Serialized stream corrupted: expecting a non-null Vector");
}
if (enabledAttributes == null) enabledAttributes = new HashSet();
enabledAttributes.clear();
enabledAttributes.addAll(vector);