/** * Returns current module. * <p> * {@inheritDoc} */ @Override protected Collection<Module> getModulesToCheck(Map<String, Object> context) { Module module = getModule(context); if (module != null) { // Retrieve the top module while (module.getParent() != null) { module = module.getParent(); } } return Collections.singleton(module); } }