Keep a backwards compatibility method with a deprecation warning. Change-Id: Id0dea205391537f2c491e03d06de14b2180fa2c8