+
+ private WS1Client getClient(ServiceHandle sh)
+ {
+ if (serviceClientBindings == null)
+ {
+ // get a list from Config or create below
+ serviceClientBindings = new Hashtable<>();
+ serviceClientBindings.put("MsaWS", new MsaWSClient());
+ serviceClientBindings.put("SecStrPred", new JPredClient());
+ serviceClientBindings.put("SeqSearch", new SeqSearchWSClient());
+ }
+ WS1Client instance = serviceClientBindings
+ .get(sh.getAbstractName());
+ if (instance == null)
+ {
+ System.err.println(
+ "WARNING - POSSIBLE IMPLEMENTATION ERROR - cannot find WSClient implementation for "
+ + sh.getAbstractName());
+ }
+ else
+ {
+ instance.serviceHandle = sh;
+ }
+ return instance;
+ }
+
+ public static Hashtable<String, Vector<ServiceHandle>> getServices()
+ {
+ return getInstance().services;
+ }