CmsMessages messages = Messages.get().getBundle(getLocale());
// template was not found in regular template folders, add current template value
if (CmsStringUtil.isEmpty(currentTemplate)) {
// current template not available, add "please select" value
String name = "--- " + messages.key(org.opencms.workplace.editors.Messages.GUI_PLEASE_SELECT_0) + " ---";
options.add(0, new ListItem(name, name, true));
} else {
// current template was set to some value, add this value to the selection
String name = null;
try {