code: public static Policy getPoolConfigPolicy(com.impetus.client.cassandra.service.CassandraHost cassandraHost)
      {
          Policy policy = new Policy();
          if (cassandraHost.getMaxActive() > 0)
          {
              policy.setMaxActivePerNode(cassandraHost.getMaxActive());
          }
          if (cassandraHost.getMaxIdle() > 0)
          {
              policy.setMaxIdlePerNode(cassandraHost.getMaxIdle());
          }
          if (cassandraHost.getMinIdle() > 0)
          {
              policy.setMinIdlePerNode(cassandraHost.getMinIdle());
          }
          if (cassandraHost.getMaxTotal() > 0)
          {
              policy.setMaxTotal(cassandraHost.getMaxTotal());
          }
          return policy;
      }
docs: Gets the pool config policy.
  
  @param persistenceUnitMetadata
  the persistence unit metadata
  @param puProperties
  @return the pool config policy