code: public static String toNamedString(Object object, Object... components) {
          StringBuilder b = new StringBuilder(components.length * 5 + 2);
          if (object != null) {
              b.append(object.getClass().getSimpleName()).append(' ');
          }
          b.append('{');
          for (int i = 0; i < components.length; i++) {
              if (i != 0) {
                  b.append(", ");
              }
              b.append(components[i]);
          }
          b.append('}');
          return b.toString();
      }
docs: Wraps all components in between brackets delimited by ','-signs, appending the class name in front of it.
  
  @param object name to append in front
  @param components to turn into a String
  @return a String representation of the input