protected static @NotNull String convertMapToGroovySource(@NotNull Map<String,Object> map){
  StringBuilder sb=new StringBuilder();
  for (  Map.Entry<String,Object> entry : map.entrySet()) {
    if (sb.length() > 0) {
      sb.append(", ");
    }
    sb.append(entry.getKey());
    sb.append(": ");
    sb.append(convertValueToGroovySource(entry.getValue()));
  }
  return sb.toString();
}

protected static @ NotNull String convertMapToGroovySource ( @ NotNull Map < String , Object > map ) { StringBuilder sb = new StringBuilder ( ) ; for ( Map . Entry < String , Object > entry : map . entrySet ( ) ) { if ( sb . length ( ) > 0 ) { sb . append ( ", " ) ; } sb . append ( entry . getKey ( ) ) ; sb . append ( ": " ) ; sb . append ( convertValueToGroovySource ( entry . getValue ( ) ) ) ; } return sb . toString ( ) ; }
returns a text string with the groovy expression that will represent the given map as a named argument list suitable for use in a method call .
