code: public static String getParametersAsString(final Object... parameters) {
          if (parameters == null || parameters.length == 0) {
              return "";
          }
          final StringBuilder builder = new StringBuilder();
          builder.append('[');
          for (int i = 0; i < parameters.length; i++) {
              builder.append(arrayToString(parameters[i]));
              if (i < parameters.length - 1) {
                  builder.append(", ");
              }
          }
          return builder.append(']').toString();
      }
docs: Convert array of given parameters to sting.