public void setPoolName(String name) {
    String nm = name;
    if ("".equals(nm)) {
      nm = null;
    }
    regionAttributes.poolName = nm;
    regionAttributes.setHasPoolName(true);

  }
Sets the pool name attribute. This causes regions that use these attributes to be a client
region which communicates with the servers that the connection pool communicates with.
<p>
If this attribute is set to {@code null} or {@code ""} then the connection pool is disabled
causing regions that use these attributes to be communicate with peers instead of servers.
<p>
The named connection pool must exist on the cache at the time these attributes are used to
create a region. See {@link PoolManager#createFactory} for how to create a connection pool.

@param name the name of the connection pool to use; if {@code null} or {@code ""} then the
       connection pool is disabled for regions using these attributes.
@since GemFire 5.7
geode-core/src/main/java/org/apache/geode/cache/AttributesFactory.java