+ if (sess != null)
+ {
+ throw new Error(
+ "Implementation Error - cannot import existing vamsas document into an existing session, Yet!");
+ }
+ try
+ {
+ vclient = clientfactory.openAsNewSessionIClient(app,
+ vamsasDocument);
+ } catch (InvalidSessionDocumentException e)
+ {
+ JOptionPane
+ .showInternalMessageDialog(
+ Desktop.desktop,
+
+ "VAMSAS Document could not be opened as a new session - please choose another",
+ "VAMSAS Document Import Failed",
+ JOptionPane.ERROR_MESSAGE);
+
+ }