Added proper getSession support for Directory and DirectoryNavigator