protected virtual ARCHETYPE_ONTOLOGY CloneOntology(openehr.openehr.am.archetype.ontology.ARCHETYPE_ONTOLOGY o)
        {
            ARCHETYPE_ONTOLOGY result = new ARCHETYPE_ONTOLOGY();

            result.term_definitions = CloneCodeDefinitions(o.term_definitions());
            result.term_bindings = CloneTermBindingSet(o.term_bindings());
            result.constraint_definitions = CloneCodeDefinitions(o.constraint_definitions());
            result.constraint_bindings = CloneConstraintBindingSet(o.constraint_bindings());

            return result;
        }