gedi-geode-extensions-core/src/main/java/gedi/solutions/geode/operations/functions/ExportJsonFunction.java
private boolean exportAllRegions(FunctionContext<Object> fc)
	{
		
		  String[] args = (String[]) fc.getArguments();
		    
		    if(args == null || args.length == 0)
		    {
		    	throw new FunctionException("Argument not provided");
		    }
		    
			
		//Get region name from arguments
		String regionName = args[0];
		
	       
		Cache cache = CacheFactory.getAnyInstance();
		
		Region<Object,Object> region = cache.getRegion(regionName);
		
		return exportRegion(region);
	
	}
private boolean exportAllRegions(FunctionContext<Object> fc)
	{
		
		  String[] args = (String[]) fc.getArguments();
		    
		    if(args == null || args.length == 0)
		    {
		    	throw new FunctionException("Argument not provided");
		    }
		    
			
		//Get region name from arguments
		String regionName = args[0];
		
	       
		Cache cache = CacheFactory.getAnyInstance();
		
		Region<Object,Object> region = cache.getRegion(regionName);
		
		return exportRegion(region);
	
	}
private boolean exportAllRegions ( FunctionContext < Object > fc ) { String [ ] args = ( String [ ] ) fc . getArguments ( ) ; if ( args == null || args . length == 0 ) { throw new FunctionException ( "Argument not provided" ) ; } //Get region name from arguments
 String regionName = args [ 0 ] ; Cache cache = CacheFactory . getAnyInstance ( ) ; Region < Object , Object > region = cache . getRegion ( regionName ) ; return exportRegion ( region ) ; }
--------------------------------------------------------
--------------------------------------------------------