return jalview.gui.Desktop.getAlignFrameFor(av);
}
-- RestClient getInstance()
++ private static RestClient getInstance()
{
Jalview j = Jalview.getInstance();
return (j.restClient == null ? j.restClient = new RestClient()
public static RestClient[] getRestClients()
{
-- RestClient c = Jalview.getInstance().restClient;
++ RestClient c = getInstance();
if (c.services == null)
{
if (rsbsUrls != null)
{
// TODO: consider validating services ?
-- RestClient c = Jalview.getInstance().restClient;
++ RestClient c = getInstance();
c.services = new Vector<>(rsbsUrls);
StringBuffer sprop = new StringBuffer();
for (String s : c.services)