public void insert(ICognitiveAgent agent) {

    Emergency.checkPrecondition(agent instanceof CognitiveAgent, "agent instanceof CognitiveAgent");

    IOntology onto = getAdaptationOntology();
    if (onto instanceof SesameOntology) {
      ValueFactory factory = ((SesameOntology) onto).getRepository().getValueFactory();

      URI subject = factory.createURI(agent.getUri());
      URI object = factory.createURI(getEntityUri(COGNITIVE_AGENT));

      try {
        RepositoryConnection con = ((SesameOntology) onto).getRepository().getConnection();

        try {
          con.add(subject, RDF.TYPE, object);
        } finally {
          con.close();
        }
      } catch (RepositoryException e) {
        e.printStackTrace();
      }
    }
  }
 public XHierarchicalSchema(SubsumptionHierarchy hierarchy, Kaon2Ontology onto) {
   Emergency.checkPrecondition(hierarchy != null, "hierarchy != null");
   m_delegate = hierarchy;
   m_onto = onto;
 }