encoder.close(); setData(baos.toString("UTF8"));
encoder.close(); try { setData(baos.toString("UTF8")); } catch (UnsupportedEncodingException e){ throw (IllegalStateException)new IllegalStateException().initCause(e); }
    public void setCA(CA ca)  throws java.io.UnsupportedEncodingException{               java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream();              java.beans.XMLEncoder encoder = new java.beans.XMLEncoder(baos);       encoder.writeObject(ca.saveData());       encoder.close();              setData(baos.toString("UTF8"));              this.ca = ca;       ca.setOwner(this);    }   