code: public HibernateDatastore getDatastoreForConnection(String connectionName) {
          if(connectionName.equals(Settings.SETTING_DATASOURCE) || connectionName.equals(ConnectionSource.DEFAULT)) {
              return this;
          } else {
              HibernateDatastore hibernateDatastore = this.datastoresByConnectionSource.get(connectionName);
              if(hibernateDatastore == null) {
                  throw new ConfigurationException("DataSource not found for name ["+connectionName+"] in configuration. Please check your multiple data sources configuration and try again.");
              }
              return hibernateDatastore;
          }
      }
docs: Obtain a child {@link HibernateDatastore} by connection name
  
  @param connectionName The connection name
  
  @return The {@link HibernateDatastore}