public static boolean isNestedMapping(String regex){
  return regex.startsWith(NESTED_MAPPING_STARTS_SYMBOL) && regex.endsWith(NESTED_MAPPING_ENDS_SYMBOL);
}

public static boolean isNestedMapping ( String regex ) { return regex . startsWith ( NESTED_MAPPING_STARTS_SYMBOL ) && regex . endsWith ( NESTED_MAPPING_ENDS_SYMBOL ) ; }
returns true if this regex represents a nested mapping , false other cases .
