/** * Gets the module. * * @param mibObject the MIB object * @param mibFile the MIB file * @return the module */ private SmiModule getModule(SmiMib mibObject, File mibFile) { for (SmiModule m : mibObject.getModules()) { if (m.getIdToken().getLocation().getSource().contains(mibFile.getAbsolutePath())) { return m; } } errorHandler.addError("Can't find the MIB module for " + mibFile); return null; }