A method for controlling access to deprecated methods of an implementation
is provided. The method includes receiving a request to access a method
that has been marked as deprecated and building a call stack for the
request. Also included is inspecting the call stack to determine if the
request is from an application outside of the implementation. The method
further includes acting on the request in accordance with a control
policy defined by a pluggable policy.