gedi-geode-extensions-core/src/main/java/gedi/solutions/geode/operations/functions/ImportJsonFunction.java
private boolean importAllRegions(FunctionContext<Object> fc) throws Exception
	{

		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 importRegion(region);

	}
private boolean importAllRegions(FunctionContext<Object> fc) throws Exception
	{

		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 importRegion(region);

	}
private boolean importAllRegions ( FunctionContext < Object > fc ) throws Exception { 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 importRegion ( region ) ; }
--------------------------------------------------------
--------------------------------------------------------