private VCPENetworkDescriptor storeModelIntoDescriptor( VCPENetworkModel model, VCPENetworkDescriptor descriptor) throws ResourceException { if (model == null) { descriptor.setvCPEModel(null); } else { try { descriptor.setvCPEModel(ObjectSerializer.toXml(model)); } catch (SerializationException e) { throw new ResourceException(e); } } return descriptor; }
@Override public String toXml() throws SerializationException { return ObjectSerializer.toXml(this); }