code: @Override
      public void afterPropertiesSet() throws Exception {
          if (getDataSource() == null && getSchemas() == null) {
              super.afterPropertiesSet();
          } else {
              if (getDataSource() == null && getSchemas() != null) {
                  throw new LiquibaseException("When schemas are defined you should also define a base dataSource");
              }
  
              if (getDataSource() != null) {
                  log.info("Schema based multitenancy enabled");
                  if (CollectionUtils.isEmpty(getSchemas())) {
                      log.warn("Schemas not defined, using defaultSchema only");
                      setSchemas(new ArrayList<>());
                      getSchemas().add(getDefaultSchema());
                  }
  
                  runOnAllSchemasXm();
              }
          }
      }
docs: {@inheritDoc}