1. A method comprising: receiving, at a computing device having one or more processors, a hierarchical bean factory associated with an application, a parent bean factory representing a shared application context and each child bean factory representing an entity specific application context; receiving a request to invoke a function associated with the application; determining, by the computing device, an entity based on the request; determining, by the computing device, a child bean factory in the hierarchical bean factory that is associated with the entity; and invoking, by the computing device, the function associated with the application using the child bean factory specific to the entity.