The method is called only once with respective 'false' and 'true' for the arguments. It is better to encapsulate those in the service provider layer.