public static void writeRegion(Region<?, ?> rgn, DataOutput out) throws IOException {
    writeString((rgn != null) ? rgn.getFullPath() : null, out);
  }
Writes an instance of Region. A Region is serialized as just a reference to a full path only.
It will be recreated on the other end by calling {@link CacheFactory#getAnyInstance} and then
calling <code>getRegion</code> on it. This method will handle a <code>null</code> value and not
throw a <code>NullPointerException</code>.

@param rgn the Region to write
@param out the {@link DataInput} to write to

@throws IOException if a problem occurs while reading from <code>in</code>
geode-core/src/main/java/org/apache/geode/DataSerializer.java