* variables which is null.
*/
protected final String getRegion(final Object handle)
throws CacheException {
final CacheObject cacheObj = convertHandle(handle);
final CacheRegion region = cacheObj.getRegion();
if (region == null) {
throw new NullObjectException("The object " + cacheObj
+ " is not attached to a region.");
}
final Object name = region.getName();
if (name != null) {
return name.toString();
} else {
return null;
}