vclient = clientfactory.getIClient(app, sess);
}
}
+ // set some properties for our VAMSAS interaction
+ setVclientConfig();
user = vclient.getUserHandle();
} catch (Exception e)
return true;
}
+ private void setVclientConfig()
+ {
+ if (vclient==null)
+ {
+ return;
+ }
+ try {
+ if (vclient instanceof uk.ac.vamsas.client.simpleclient.SimpleClient)
+ {
+ uk.ac.vamsas.client.simpleclient.SimpleClientConfig cfg = ((uk.ac.vamsas.client.simpleclient.SimpleClient) vclient).getSimpleClientConfig();
+ cfg._validatemergedroots = false;
+ cfg._validateupdatedroots= true; //we may write rubbish otherwise.
+ }
+ }
+ catch (Error e)
+ {
+ Cache.log.warn("Probable SERIOUS VAMSAS client incompatibility - carrying on regardless",e);
+ }
+ catch (Exception e)
+ {
+ Cache.log.warn("Probable VAMSAS client incompatibility - carrying on regardless",e);
+ }
+ }
+
/**
* make the appHandle for Jalview
*