RegistryErrorList rspErr = rsp.getRegistryResponse().getRegistryErrorList(); if (rspErr == null) { rsp.getRegistryResponse().setRegistryErrorList(errs); } else { rspErr.getRegistryError().addAll(errs.getRegistryError());
regRsp.setRegistryErrorList(regErrors);
private RetrieveDocumentSetResponseType addResponse(RetrieveDocumentSetResponseType rsp, RetrieveDocumentSetResponseType tmpRsp) { if (tmpRsp == null) { return rsp; } if (rsp == null) { return tmpRsp; } else { if (tmpRsp.getDocumentResponse() != null) rsp.getDocumentResponse().addAll(tmpRsp.getDocumentResponse()); if (tmpRsp.getRegistryResponse() != null) { RegistryErrorList errs = tmpRsp.getRegistryResponse().getRegistryErrorList(); if (errs != null && errs.getRegistryError().size() > 0) { RegistryErrorList rspErr = rsp.getRegistryResponse().getRegistryErrorList(); if (rspErr == null) { rsp.getRegistryResponse().setRegistryErrorList(errs); } else { rspErr.getRegistryError().addAll(errs.getRegistryError()); } } } } return rsp; }
regRsp.setRegistryErrorList(regErrors);