code: static Function<String, String> createAnnotationReplacer(final Map<String, Object> map) {
      return from -> {
        final Object object = map.get(from);
        return object == null ? null : object.toString();
      };
    }
docs: Visible for testing