code: private static void addRelationships(
              Map<Instance, TemporalExtendedPropositionDefinition> extendedParameterCache,
              Instance instance, HighLevelAbstractionDefinition cad,
              ProtegeKnowledgeSourceBackend backend)
              throws KnowledgeSourceReadException {
          ConnectionManager cm = backend.getConnectionManager();
          for (Iterator<?> itr = instance.getOwnSlotValues(
                  instance.getKnowledgeBase().getSlot("withRelations")).iterator(); itr.hasNext();) {
              Instance relationInstance = (Instance) itr.next();
  
              Instance lhsExtendedParameter =
                      (Instance) cm.getOwnSlotValue(relationInstance,
                      cm.getSlot("lhs"));
              Instance rhsExtendedParameter =
                      (Instance) cm.getOwnSlotValue(relationInstance,
                      cm.getSlot("rhs"));
  
              Relation relation = Util.instanceToRelation(relationInstance,
                      cm, backend);
  
              TemporalExtendedPropositionDefinition lhsEP =
                      extendedParameterCache.get(lhsExtendedParameter);
  
              TemporalExtendedPropositionDefinition rhsEP =
                      extendedParameterCache.get(rhsExtendedParameter);
  
              cad.setRelation(lhsEP, rhsEP, relation);
          }
      }
docs: Adds all of the temporal relationships in the given Protege complex
  abstraction instance (specified with the <code>withRelationships</code>
  slot) to the given PROTEMPA complex abstraction definition.
  
  @param instance
  a Protege complex abstraction <code>Instance</code>.
  @param cad
  a PROTEMPA <code>ComplexAbstractionDefinition</code> instance.