- return parser.parseSources(Collections.singleton(Resources.asByteSource(TestModel.class.getResource(DATASTORE_TEST_YANG))));
- } catch (IOException | YangSyntaxErrorException e) {
- throw new ExceptionInInitializerError(e);
+ schemaContext = reactor.buildEffective(sources);
+ } catch (IOException e1) {
+ throw new ExceptionInInitializerError(e1);
+ } catch (ReactorException e2) {
+ throw new RuntimeException("Unable to build schema context from " + sources, e2);