public Barcode unmarshalBarcode(AddressDetails.PostalServiceElements.Barcode src) { Barcode dest = new Barcode(); if (src.isSetContent()) dest.setContent(src.getContent()); if (src.isSetCode()) dest.setCode(src.getCode()); if (src.isSetType()) dest.setType(src.getType()); return dest; }