public EntryRelationship getEntryRelationship(String value) {
    entryRelationship.setTypeCode(x_ActRelationshipEntryRelationship.SUBJ);
    entryRelationship.setContextConductionInd(true);
    entryRelationship.setTemplateId(
        Arrays.asList(new II(Constants.ObservationOids.UNBOUND_OBSERVATION_TEMPLATE_ID)));

    observation.setMoodCode(x_ActMoodDocumentObservation.Eventoccurrence);
    observation.getCode().setCodeEx(Constants.ObservationType.UNBOUND.toString());

    ED text = new ED();
    if (!EverestUtils.isNullorEmptyorWhitespace(value)) {
      text.setData(value);
    } else {
      text.setNullFlavor(NullFlavor.NoInformation);
    }
    observation.setText(text);

    return entryRelationship;
  }