How to override Spring Bean supplied from 3rd party dependency The main idea is to override one method of the class from