Added a method to get back the IoSession from the core session
diff --git a/core-shared/src/main/java/org/apache/directory/server/core/shared/DefaultCoreSession.java b/core-shared/src/main/java/org/apache/directory/server/core/shared/DefaultCoreSession.java
index e1361d7..043b739 100644
--- a/core-shared/src/main/java/org/apache/directory/server/core/shared/DefaultCoreSession.java
+++ b/core-shared/src/main/java/org/apache/directory/server/core/shared/DefaultCoreSession.java
@@ -169,6 +169,17 @@
 
 
     /**
+     * Gets the IoSession from the CoreSession. This is only useful when the server is not embedded.
+     * 
+     * @return ioSession The IoSession for this CoreSession
+     */
+    public IoSession getIoSession()
+    {
+        return ioSession;
+    }
+
+
+    /**
      * Stores the IoSession into the CoreSession. This is only useful when the server is not embedded.
      * 
      * @param ioSession The IoSession for this CoreSession