+ SimpleSessionHandle[] sh = null;
+ try {
+ sh = getSessionManager().getSessionFor(urn);
+ } catch (IOException e)
+ {
+ log.warn("Ignored IO Exception when trying to access sessionlist.",e);
+ }
+ File sesfile = null;
+ if (sh!=null)
+ {
+ if (sh.length==1)
+ {
+ sesfile = new File(sh[0].getPhysLoc());
+ sh[0] = null;
+ } else {
+ log.error("Raising exception for multiple session files corresponding to single URN (was : "+sessionUrn+")");
+ throw new InvalidSessionUrnException("IMPLEMENTATION ERROR: Multiple session files available for URN ("+sessionUrn+")");
+ }
+ }
+ return sesfile;