if (this.equals (INPUT_METHOD_SEGMENT))
if (getName().equals(INPUT_METHOD_SEGMENT.getName()))
    protected Object readResolve() throws InvalidObjectException    {      if (this.equals (READING))        return READING;      if (this.equals (LANGUAGE))        return LANGUAGE;      if (this.equals (INPUT_METHOD_SEGMENT))        return INPUT_METHOD_SEGMENT;      throw new InvalidObjectException ("Can't resolve Attribute: "               + getName());    }