@NonNull
        private String apply(@NonNull final String input, final LogContext context) {
            final String bracketedTemplate = "[" + template + "]";

            // check containment first to not unconditionally call the getValue(...) method
            if (input.contains(bracketedTemplate)) {
                return StringUtils.replace(input, bracketedTemplate, getValue(context));
            }
            return input;
        }
Context aware data container for log templates.
<p>
Some log templates need additional information. To provide that information, it can be encapsulated in this log
context.
</p>
main/src/main/java/cgeo/geocaching/log/LogTemplateProvider.java