gedi-geode-extensions-core/src/main/java/gedi/solutions/geode/operations/csv/function/ExportCsvFunction.java
private boolean exportRegionByArg(FunctionContext<String[]> fc)
	{
		
		  String[] args = fc.getArguments();
		    
		    if(args == null || args.length == 0)
		    {
		    	throw new FunctionException("Argument not provided");
		    }
		    
			
		//Get region name from arguments
		String regionName = Organizer.at(0,args);
		if (regionName == null || regionName.length() == 0)
			throw new FunctionException("regionName is required at argumeng index 0");
		
		Cache cache = CacheFactory.getAnyInstance();
		
		Region<Object,Object> region = cache.getRegion(regionName);

		return exportRegion(region,Organizer.at(1, args));
	
	}
private boolean exportRegionByArg(FunctionContext<String[]> fc)
	{
		
		  String[] args = fc.getArguments();
		    
		    if(args == null || args.length == 0)
		    {
		    	throw new FunctionException("Argument not provided");
		    }
		    
			
		//Get region name from arguments
		String regionName = Organizer.at(0,args);
		if (regionName == null || regionName.length() == 0)
			throw new FunctionException("regionName is required at argumeng index 0");
		
		Cache cache = CacheFactory.getAnyInstance();
		
		Region<Object,Object> region = cache.getRegion(regionName);

		return exportRegion(region,Organizer.at(1, args));
	
	}
private boolean exportRegionByArg ( FunctionContext < String [ ] > fc ) { String [ ] args = fc . getArguments ( ) ; if ( args == null || args . length == 0 ) { throw new FunctionException ( "Argument not provided" ) ; } //Get region name from arguments
 String regionName = Organizer . at ( 0 , args ) ; if ( regionName == null || regionName . length ( ) == 0 ) throw new FunctionException ( "regionName is required at argumeng index 0" ) ; Cache cache = CacheFactory . getAnyInstance ( ) ; Region < Object , Object > region = cache . getRegion ( regionName ) ; return exportRegion ( region , Organizer . at ( 1 , args ) ) ; }
--------------------------------------------------------
--------------------------------------------------------