String context = null; // something like "/topic/HelloWorld"
// extract the plugin type and version from 'defaultPlugin'
String propName = null;
try {
PropString defaultPlugin = new PropString(this.type.getDefaultValue()+","+this.version.getDefaultValue());
// Port to linked ContextNode?
propName = defaultPlugin.setFromEnv(this.glob, nodeId, context, getRootTagName(), relating, "defaultPlugin");
if (log.isLoggable(Level.FINE)) log.fine("Lookup of nodeId=" + nodeId + " context=" + context + " getRootTagName=" + getRootTagName() +
" relating=" + relating + " propName=" + propName + " defaultValue=" + defaultPlugin.getValue());
PluginInfo pluginInfo = new PluginInfo(glob, null, defaultPlugin.getValue());
if (defaultPlugin.isModified()) {
setType(pluginInfo.getType());
setVersion(pluginInfo.getVersion());
}
else {
this.type.setDefaultValue(pluginInfo.getType());