code: @Override
      public Token replaceToken(final Token[] tokens, final int replacingFromTokenIndex, final int replaceToTokenIndex)
              throws ParseException, IOException
      {
          final Equ equ = Equ.getInstance(true);
          String resultAsATokenValue = null;
          try
          {
              Object equResult;
              equResult = equ.evaluate(data);
              if (equResult instanceof LocalDateTime)
              {
                  final LocalDateTime ldt = (LocalDateTime) equResult;
                  if (ldt.toLocalDate().equals(LocalDate.MIN))
                      resultAsATokenValue = TemporalHelper.getOutputTF().format(ldt);
                  else if (ldt.toLocalTime().equals(LocalTime.MIN))
                      resultAsATokenValue = TemporalHelper.getOutputDF().format(ldt);
                  else
                      resultAsATokenValue = TemporalHelper.getOutputDTF().format(ldt);
              } else
                  resultAsATokenValue = equResult.toString();
  
          } catch (final Exception e)
          {
              logger.error("{}", e.getMessage(), e);
              throw new ParseException(e.getMessage(), 0);
          }
  
          return new Token(tokens[replacingFromTokenIndex].charCommand(),
                  resultAsATokenValue,
                  tokens[replacingFromTokenIndex].getInputStartX(),
                  tokens[replaceToTokenIndex].getInputEndX(),
                  true);
      }
docs: {@inheritDoc}