// Get Templates configuration from user properties
String currentTemplateName = userProperties.getProperty("jsynoptic.ui.JSynoptic.currentTemplate", null);
if (currentTemplateName != null){
// Get current template from current template name
Template t = null;
for (int i = 0; (i < Template.getTemplates().size()) && (t == null); i++) {
Template temp = (Template)Template.getTemplates().get(i);
if ( temp.getName().equals(currentTemplateName)){
t = temp;
}
}
if (t != null){
Template.setCurrentTemplate(t);