(ProfileFragmentFactoryImpl)
ProfileFragmentFactoryImpl.getInstance();
// Create and initialise the RI Description Manager.
DescriptionManager.setSchema(getVocabularyStream("vocabulary.xsd"));
DescriptionManager dm = DescriptionManager.getInstance();
// Add the "normal" vocabulary files provided with the RI example.
// NOTE: it would be better if these were configurable.
dm.addVocabulary(getVocabularyStream("universalvocab.xml"));
dm.addVocabulary(getVocabularyStream("ccppschema-19991014.xml"));
dm.addVocabulary(getVocabularyStream("ccppschema-20000405.xml"));
dm.addVocabulary(getVocabularyStream("ccppschema-20000405a.xml"));
dm.addVocabulary(getVocabularyStream("ccppschema-20000405b.xml"));
dm.addVocabulary(getVocabularyStream("ccppschema-20010111.xml"));
dm.addVocabulary(getVocabularyStream("ccppschema-20010330.xml"));
dm.addVocabulary(getVocabularyStream("ccppschema-20010330a.xml"));
dm.addVocabulary(getVocabularyStream("ccppschema-20010330b.xml"));
dm.addVocabulary(getVocabularyStream("ccppschema-20010430.xml"));
dm.addVocabulary(getVocabularyStream("ccppschema-20010430a.xml"));
dm.addVocabulary(getVocabularyStream("ccppschema-20010430b.xml"));
dm.addVocabulary(getVocabularyStream("ccppschema-20020710.xml"));
dm.addVocabulary(getVocabularyStream("ccppschema-20020710a.xml"));
dm.addVocabulary(getVocabularyStream("ccppschema-20020710b.xml"));
dm.addVocabulary(getVocabularyStream("ccppschema-20021212.xml"));
dm.addVocabulary(getVocabularyStream("ccppschema-20030226.xml"));
// OK, we have set up the CC/PP RI, so save away the factories
// for our CC/PP client code to find later. Oh, I love singletons.
ProfileFactory.setInstance(factory);
ProfileFragmentFactory.setInstance(fragmentFactory);