gedi-geode-extensions-core/src/main/java/gedi/solutions/geode/operations/functions/ExportJsonFunction.java
private boolean  exportRegion(Region<Object, Object> region)
	{
		
		if(PartitionRegionHelper.isPartitionedRegion(region))
		{
			region = PartitionRegionHelper.getLocalData(region);
		}
		
		//get first
	    
	    ObjectMapper  mapper = new ObjectMapper();
	    mapper.getSerializerProvider().setNullKeySerializer(new DefaultNullKeySerializer());
	    mapper.getSerializerProvider().setDefaultKeySerializer(new DefaultKeySerializer());

	    Set<Object> keySet = region.keySet();
	    
	    if(keySet == null || keySet.isEmpty())
	    {
	    	return false;	    	
	    }
	    
	    String regionName = region.getName();
	    
	    Collection<SerializationRegionWrapper> collection = new ArrayList<SerializationRegionWrapper>(keySet.size());
	    SerializationRegionWrapper serializationWrapper = null;
	    try
		{
	    	String keyClassName = null;
	    	Object value = null;
	    	String valueClassName = null;
	    	
			for (Object key : keySet)
			{
				keyClassName = key.getClass().getName();
				
				value = region.get(key);
				valueClassName = value.getClass().getName();
				
				serializationWrapper= new SerializationRegionWrapper(key,keyClassName,value, valueClassName);
				collection.add(serializationWrapper);
			}
			
			File resultFile = new File(new StringBuilder(this.directoryPath)
			.append(fileSeparator).append(regionName).append(suffix).toString());
			
			//write data
			mapper.writeValue(resultFile, collection);
			
			return true;
			
		}
		catch (RuntimeException e)
		{
			throw e;
		}
	    catch(Exception e)
	    {
	    	throw new FunctionException("Error exporting ERROR:"+ e.getMessage()+" serializationWrapper:"+serializationWrapper,e);
	    }
	}
private boolean  exportRegion(Region<Object, Object> region)
	{
		
		if(PartitionRegionHelper.isPartitionedRegion(region))
		{
			region = PartitionRegionHelper.getLocalData(region);
		}
		
		//get first
	    
	    ObjectMapper  mapper = new ObjectMapper();
	    mapper.getSerializerProvider().setNullKeySerializer(new DefaultNullKeySerializer());
	    mapper.getSerializerProvider().setDefaultKeySerializer(new DefaultKeySerializer());

	    Set<Object> keySet = region.keySet();
	    
	    if(keySet == null || keySet.isEmpty())
	    {
	    	return false;	    	
	    }
	    
	    String regionName = region.getName();
	    
	    Collection<SerializationRegionWrapper> collection = new ArrayList<SerializationRegionWrapper>(keySet.size());
	    SerializationRegionWrapper serializationWrapper = null;
	    try
		{
	    	String keyClassName = null;
	    	Object value = null;
	    	String valueClassName = null;
	    	
			for (Object key : keySet)
			{
				keyClassName = key.getClass().getName();
				
				value = region.get(key);
				valueClassName = value.getClass().getName();
				
				serializationWrapper= new SerializationRegionWrapper(key,keyClassName,value, valueClassName);
				collection.add(serializationWrapper);
			}
			
			File resultFile = new File(new StringBuilder(this.directoryPath)
			.append(fileSeparator).append(regionName).append(suffix).toString());
			
			//write data
			mapper.writeValue(resultFile, collection);
			
			return true;
			
		}
		catch (RuntimeException e)
		{
			throw e;
		}
	    catch(Exception e)
	    {
	    	throw new FunctionException("Error exporting ERROR:"+ e.getMessage()+" serializationWrapper:"+serializationWrapper,e);
	    }
	}
------------------------------------------------