@Override
  public CliFunctionResult executeFunction(FunctionContext<String> context) throws Exception {
    String regionPath = context.getArguments();
    if (regionPath == null) {
      throw new IllegalArgumentException(
          CliStrings.CREATE_REGION__MSG__SPECIFY_VALID_REGION_PATH);
    }
    XmlEntity xmlEntity = new XmlEntity(CacheXml.REGION, "name", regionPath.substring(1));
    return new CliFunctionResult(context.getMemberName(), xmlEntity.getXmlDefinition());
  }
this returns the region xml definition back to the caller
geode-gfsh/src/main/java/org/apache/geode/management/internal/cli/functions/FetchRegionAttributesFunction.java