/** * This method is used to obtain a {@link ModuleHandler} for the specified {@link ModuleImpl}. * * @param m the {@link ModuleImpl} which is looking for a handler. * @param ruleUID UID of the {@link Rule} that the specified {@link ModuleImpl} belongs to. * @return handler that processing this module. Could be {@code null} if the {@link ModuleHandlerFactory} is not * available. */ private @Nullable ModuleHandler getModuleHandler(Module m, String ruleUID) { String moduleTypeId = m.getTypeUID(); ModuleHandlerFactory mhf = getModuleHandlerFactory(moduleTypeId); if (mhf == null || mtRegistry.get(moduleTypeId) == null) { return null; } return mhf.getHandler(m, ruleUID); }
MT childHandler = (MT) childMhf.getHandler(child, childModulePrefix + ":" + compositeModuleId);