public CareContextShortVo getCareContextForPasEvent(PASEventRefVo pasEvent) {
    if (pasEvent == null || pasEvent.getID_PASEvent() == null)
      throw new CodingRuntimeException(
          "pasEvent is null or id not provided in method getCareContextForPasEvent");

    List ccList =
        getDomainFactory()
            .find(" from CareContext cc where cc.pasEvent.id = " + pasEvent.getID_PASEvent());
    if (ccList != null && ccList.size() == 1)
      return CareContextShortVoAssembler.create((CareContext) ccList.get(0));

    return null;
  }
  private void saveDocumentStatus(
      DocumentStatus cspDocumentStatus, PASEventRefVo pasEventRef, MemberOfStaffShortVo mos)
      throws StaleObjectException {
    DomainFactory factory = getDomainFactory();

    CorrespondenceDetails domCspDet =
        CorrespondenceDetails.getCorrespondenceDetailsFromPasEvent(
            factory, pasEventRef.getID_PASEvent());
    CorrespondenceDetailsVo voCorrespondenceDetails =
        CorrespondenceDetailsVoAssembler.create(domCspDet);

    voCorrespondenceDetails.setCspStatusHistory(
        updateHistoryStatus(voCorrespondenceDetails, cspDocumentStatus, mos));
    voCorrespondenceDetails.setCurrentStatus(cspDocumentStatus);

    CorrespondenceDetails domDocDetails = null;

    domDocDetails =
        CorrespondenceDetailsVoAssembler.extractCorrespondenceDetails(
            factory, voCorrespondenceDetails);

    factory.save(domDocDetails);
  }