code: protected String parseObjectToString(Object object, Locale locale, Arguments args)
      {
          final String string = String.valueOf(object);
          if (args.has(LOWERCASE_FLAG))
          {
              return string.toLowerCase(locale);
          }
          if (args.has(UPPERCASE_FLAG))
          {
              return string.toUpperCase(locale);
          }
          return string;
      }
docs: Parses the given object to a string depending on the context.
  
  @param object The object to parse.
  @param locale The locale to use.
  
  @return The object as a string.