try
{
bioJsHtmlOutput.updateBioJS();
+ try
+ {
+ // allow the update some three seconds to complete before getting latest
+ // version of BioJS template
+ Thread.sleep(1000 * 3);
+ } catch (InterruptedException e)
+ {
+ e.printStackTrace();
+ }
bjsTemplate = BioJsHTMLOutput.getBioJsTemplateAsString();
// System.out.println(bjsTemplate);
} catch (IOException e)