if (component instanceof PluginInterface) {
PluginInterface pi = (PluginInterface) component;
if (pi.getPlugin() instanceof MagnetPlugin) {
MagnetPlugin magnetPlugin = (MagnetPlugin) pi.getPlugin();
magnetPlugin.addListener(new MagnetPluginListener() {
public boolean set(String name, Map values) {
if (name.equals("AZMSG") && values != null) {
String val = (String) values.get("value");
if (val.indexOf(";switch-ui;") > 0) {