- public SessionUrn(File sessionLocation) {// throws MalformedURLException {\r
- // TODO: LATER: implement switch to have vamsas document or simpleclient\r
- // sessions for same constructor\r
- // use URI instead of URL\r
- super(SIMPLECLIENT, sessionLocation.getAbsoluteFile().toURI());\r
+ public SessionUrn(File sessionLocation) {\r
+ // TODO: refactor this and use a Urn factory - this inline switch is pretty ugly!\r
+ super((sessionLocation.isFile() ? VAMSASDOCUMENT : SIMPLECLIENT)\r
+ ,sessionLocation.getAbsoluteFile().toURI());\r