code: public boolean addCassandraHost(CassandraHost cassandraHost)
      {
          Properties props = KunderaMetadataManager.getPersistenceUnitMetadata(kunderaMetadata, getPersistenceUnit())
                  .getProperties();
          String keyspace = null;
          if (externalProperties != null)
          {
              keyspace = (String) externalProperties.get(PersistenceProperties.KUNDERA_KEYSPACE);
          }
          if (keyspace == null)
          {
              keyspace = (String) props.get(PersistenceProperties.KUNDERA_KEYSPACE);
          }
          String poolName = PelopsUtils.generatePoolName(cassandraHost.getHost(), cassandraHost.getPort(), keyspace);
          Cluster cluster = new Cluster(cassandraHost.getHost(), new IConnection.Config(cassandraHost.getPort(), true,
                  -1, PelopsUtils.getAuthenticationRequest(cassandraHost.getUser(), cassandraHost.getPassword())), false);
          Policy policy = PelopsUtils.getPoolConfigPolicy(cassandraHost);
          try
          {
              Pelops.addPool(poolName, cluster, keyspace, policy, null);
              hostPools.put(cassandraHost, Pelops.getDbConnPool(poolName));
              return true;
          }
          catch (TransportException e)
          {
              logger.warn("Node {} are still down ", cassandraHost.getHost());
              return false;
          }
      }
docs: Adds a pool in hostPools map for given host.
  
  @param cassandraHost
  @return true id added successfully.