private void setCpe(
      SpecimenRequirementDetail detail, SpecimenRequirement sr, OpenSpecimenException ose) {
    Long eventId = detail.getEventId();
    if (eventId == null) {
      ose.addError(CPE_REQUIRED);
      return;
    }

    CollectionProtocolEvent cpe = daoFactory.getCollectionProtocolDao().getCpe(eventId);
    if (cpe == null) {
      ose.addError(CpeErrorCode.NOT_FOUND);
    }

    sr.setCollectionProtocolEvent(cpe);
  }