private SchemaContext getSchemaContext(List<YangModuleInfo> moduleInfos) {
this.moduleInfoBackedCntxt.addModuleInfos(moduleInfos);
Optional<SchemaContext> tryToCreateSchemaContext =
- this.moduleInfoBackedCntxt.tryToCreateSchemaContext().toJavaUtil();
+ this.moduleInfoBackedCntxt.tryToCreateSchemaContext();
if (!tryToCreateSchemaContext.isPresent()) {
LOG.error("Could not create the initial schema context. Schema context is empty");
throw new IllegalStateException();