code: private boolean appendList(StringBuilder builder, Object value)
      {
          boolean isPresent = false;
          if (value instanceof Collection)
          {
              Collection collection = ((Collection) value);
              isPresent = true;
              builder.append(Constants.OPEN_SQUARE_BRACKET);
              for (Object o : collection)
              {
                  // Allowing null values.
                  appendValue(builder, o != null ? o.getClass() : null, o, false);
                  builder.append(Constants.COMMA);
              }
              if (!collection.isEmpty())
              {
                  builder.deleteCharAt(builder.length() - 1);
              }
              builder.append(Constants.CLOSE_SQUARE_BRACKET);
  
          }
          else
          {
              appendValue(builder, value.getClass(), value, false);
          }
          return isPresent;
      }
docs: Appends a object of type {@link java.util.List}
  
  @param builder
  the builder
  @param value
  the value
  @return true, if successful