1. A component-based system on at least one computer system, wherein the component-based system allows legacy components to locate necessary artifacts, the component-based system comprising: a processor; a context finder that is installed as a context classloader, wherein the context finder analyzes an execution stack to identify a classloader of a legacy component that initiated a context classloader call during runtime; and a buddy loading system that determines whether the legacy component requires loading at least one buddy to locate an artifact that cannot be found with a normal delegation model, and the buddy loading system locates and loads the at least one buddy using a predefined policy, wherein the at least one buddy comprises a class or a resource component for locating the artifact for the legacy component, and wherein a requirement of buddy loading is determined by examining a mark-up comprising a descriptor that indicates the legacy component requires at least one buddy, and indicates the predefined policy used to locate the at least one buddy, and wherein the predefined policy includes one of the following: a dependent policy, a named policy, a global policy, and an execution stack policy.
1. A component-based system on at least one computer system, wherein the component-based system allows legacy components to locate necessary artifacts, the component-based system comprising: a processor; a context finder that is installed as a context classloader, wherein the context finder analyzes an execution stack to identify a classloader of a legacy component that initiated a context classloader call during runtime; and a buddy loading system that determines whether the legacy component requires loading at least one buddy to locate an artifact that cannot be found with a normal delegation model, and the buddy loading system locates and loads the at least one buddy using a predefined policy, wherein the at least one buddy comprises a class or a resource component for locating the artifact for the legacy component, and wherein a requirement of buddy loading is determined by examining a mark-up comprising a descriptor that indicates the legacy component requires at least one buddy, and indicates the predefined policy used to locate the at least one buddy, and wherein the predefined policy includes one of the following: a dependent policy, a named policy, a global policy, and an execution stack policy. 3. The component-based system of claim 1 , wherein the artifact comprises a resource.