- final BindingCodecTreeFactory codecFactory) throws YangParserException, IOException {
- final ModuleInfoSnapshotBuilder builder = new ModuleInfoSnapshotBuilder("yanglib", parserFactory);
- builder.registerModuleInfos(List.of($YangModuleInfoImpl.getInstance()));
- final ModuleInfoSnapshot snapshot = builder.build();
+ final BindingCodecTreeFactory codecFactory) throws YangParserException {
+ final ModuleInfoSnapshot snapshot = new ModuleInfoSnapshotBuilder(parserFactory)
+ .add(ModulesState.class)
+ .build();