Deprecated method invocation replaced