public function lookupLocalProxy($lookupName)
    {

        // extract the session bean name from the lookup name
        $beanName = str_replace('/local', '', $lookupName);

        // load the application
        $application = $this->getApplication();

        // load bean and object manager
        $beanManager = $application->search(BeanContextInterface::IDENTIFIER);
        $objectManager = $application->search(ObjectManagerInterface::IDENTIFIER);

        // load the requested session bean
        $sessionBean = $application->search($beanName);

        // load the bean descriptor
        $sessionBeanDescriptor = $objectManager->getObjectDescriptors()->get(get_class($sessionBean));

        // initialize the local proxy instance
        return new LocalProxy(
            $beanManager,
            $sessionBeanDescriptor,
            $sessionBean
        );
    }