code: @Override
      public void setup(final Application application) {
          Map<String, Object> config = application.getSrcProperties();
          modelMap = Maps.newLinkedHashMap();
  
          Set<String> defaultModelsPkg = Sets.newLinkedHashSet();
          //db.default.models.pkg=
          config.keySet().stream()
                  .filter(key -> key.startsWith(MODULE_MODELS_KEY_PREFIX))
                  .forEach(key -> {
                      String modelPackages = (String) config.get(key);
                      if (StringUtils.isNotBlank(modelPackages)) {
                          Collections.addAll(defaultModelsPkg, StringUtils.deleteWhitespace(modelPackages).split(","));
                      }
                  });
  
          for (String name : DataSourceManager.getDataSourceNames()) {
              String modelPackages = (String) config.get("db." + name + ".models");
              final Set<String> pkgs = Sets.newHashSet();
              if (StringUtils.isNotBlank(modelPackages)) {
                  Collections.addAll(pkgs, StringUtils.deleteWhitespace(modelPackages).split(","));
              }
  
              if (DataSourceManager.getDefaultDataSourceName().equalsIgnoreCase(name)) {
                  pkgs.addAll(defaultModelsPkg);
              }
  
              //db.default.models.pkg=
              //db.default.models+=
              if (!pkgs.isEmpty()) {
                  final String[] startsPackages = pkgs.toArray(new String[pkgs.size()]);
                  application.packages(startsPackages);
  
                  final Set<Class> classes = Sets.newHashSet();
  
                  subscribeSystemEvent(ClassFoundEvent.class, event -> event.accept(info -> {
                      if (info.startsWithPackage(startsPackages)) {
                          logger.trace("load class : {}", info.getClassName());
                          Class clazz = info.toClass();
                          if (info.containsAnnotations(Entity.class, Embeddable.class)
                                  || Model.class.isAssignableFrom(clazz)) {
                              classes.add(clazz);
                          }
                          return true;
                      }
                      return false;
                  }));
  
                  modelMap.put(name, classes);
              }
          }
  
          defaultModelsPkg.clear();
      }
docs: {@inheritDoc}