MULE-7113: Changing ProvidesTotalHint so that it doesn't break backwards compatibility and using JDK dynamic proxies in watermark