gedi-geode-extensions-core/src/main/java/gedi/solutions/geode/operations/functions/GfdImportFunction.java
public void execute(FunctionContext<Object> fc)
	{
		ResultSender<Object> rs = fc.getResultSender();

		try
		{
			boolean results = false;
			if (fc instanceof RegionFunctionContext)
			{
				results = importOnRegion((RegionFunctionContext) fc);
			} else
			{
				String[] args = (String[])fc.getArguments();
				
				if(args == null || args.length == 0)
					throw new IllegalArgumentException("Arguments with region name required");
				
				String regionName = args[0];
				this.importRegion(regionName);
			}

			rs.lastResult(results);
		}
		catch (Exception e)
		{
			String stackTrace = Debugger.stackTrace(e);

			LogManager.getLogger(getClass()).error(stackTrace);
			rs.sendException(e);
			
			throw new FunctionException(stackTrace);
		}
	}
public void execute(FunctionContext<Object> fc)
	{
		ResultSender<Object> rs = fc.getResultSender();

		try
		{
			boolean results = false;
			if (fc instanceof RegionFunctionContext)
			{
				results = importOnRegion((RegionFunctionContext) fc);
			} else
			{
				String[] args = (String[])fc.getArguments();
				
				if(args == null || args.length == 0)
					throw new IllegalArgumentException("Arguments with region name required");
				
				String regionName = args[0];
				this.importRegion(regionName);
			}

			rs.lastResult(results);
		}
		catch (Exception e)
		{
			String stackTrace = Debugger.stackTrace(e);

			LogManager.getLogger(getClass()).error(stackTrace);
			rs.sendException(e);
			
			throw new FunctionException(stackTrace);
		}
	}
public void execute ( FunctionContext < Object > fc ) { ResultSender < Object > rs = fc . getResultSender ( ) ; try { boolean results = false ; if ( fc instanceof RegionFunctionContext ) { results = importOnRegion ( ( RegionFunctionContext ) fc ) ; } else { String [ ] args = ( String [ ] ) fc . getArguments ( ) ; if ( args == null || args . length == 0 ) throw new IllegalArgumentException ( "Arguments with region name required" ) ; String regionName = args [ 0 ] ; this . importRegion ( regionName ) ; } rs . lastResult ( results ) ; } catch ( Exception e ) { String stackTrace = Debugger . stackTrace ( e ) ; LogManager . getLogger ( getClass ( ) ) . error ( stackTrace ) ; rs . sendException ( e ) ; throw new FunctionException ( stackTrace ) ; } }
------------------------------------------------
------------------------------------------------