- addChildOfModuleBySpecificModuleInternal(IetfYangLibrary.SPECIFIC_MODULE_NAME_LEAF_QNAME,
- deviationEntryNode, context.findModule(lastComponent.getModule()).get().getName(),
- ietfYangLibraryModule);
- if (lastComponent.getRevision().isPresent()) {
- addChildOfModuleBySpecificModuleInternal(IetfYangLibrary.SPECIFIC_MODULE_REVISION_LEAF_QNAME,
- deviationEntryNode, lastComponent.getRevision(),
- ietfYangLibraryModule);
- }
+ addCommonLeafs(context.findModule(lastComponent.getModule()).get(), deviationEntryNode,
+ ietfYangLibraryModule);