code: public static String resolveOrOriginal(String input) {
          try {
              return resolve(input, true);
          } catch (UnresolvedExpressionException e) {
              return input;
          }
      }
docs: Attempts to substitute all the found expressions in the input
  with their corresponding resolved values.
  If any of the found expressions failed to resolve or
  if the input does not contain any expression, the input is returned as is.
  
  @param input  the input string
  @return  the input with resolved expressions or the original input in case
  the input didn't contain any expressions or at least one of the
  expressions could not be resolved