Command c = new Command();
c.setName(txtName.getText());
c.setDescription(txtDescription.getText());
if (cmbReceiver.isEnabled()) {
Plugin plugin = (Plugin) clients.get((String) cmbReceiver.getSelectedItem());
c.setReceiver(plugin.getReadQueue());
} else {
c.setReceiver(original.getReceiver());
}
System.out.println("receiver for " + c.getName() + " is: " + c.getReceiver());