Description
Since the only place that this method is used is within a method that throws Exception, the method should be allowed to throw Exception or IoException. This makes life easier if the creation of the session could fail, for example creating an ObjectOutputStream which could throw IOException.