code: public static Object getLazyString(LazyEvaluation lazyLambda)
      {
          return new Object()
          {
              @Override
              public String toString()
              {
                  try
                  {
                      return lazyLambda.getString();
                  }
                  catch (Exception ex)
                  {
                      StringWriter sw = new StringWriter();
                      ex.printStackTrace(new PrintWriter(sw));
                      return "Error while evaluating lazy String... " + sw.toString();
                  }
              }
          };
      }
docs: Utility function to enable logging of complex statements more efficiently (lazy).
  
  @param  lazyLambda
  The Supplier used when evaluating the expression
  
  @return An Object that can be passed to SLF4J's logging methods as lazy parameter