public void setProperties(final Map<String, Object> props) {
super.setProperties(props);
my_hostname = (String)props.get(MY_DOMAIN_NAME_PROP_KEY);
// simpleJid = (String)props.get(SIMPLE_JID_PROP_KEY);
serviceEntity = new ServiceEntity(getName(), null, "Stanza Receiver");
serviceEntity.addIdentities(
new ServiceIdentity("component", "generic", "Stanza Receiver"));
serviceEntity.addFeatures(DEF_FEATURES);
ServiceEntity com = new ServiceEntity(my_hostname, "commands",
"Tasks management commands");
com.addFeatures(DEF_FEATURES);
com.addIdentities(
new ServiceIdentity("automation", "command-list",
"Tasks management commands"));
serviceEntity.addItems(com);
for (TaskCommandIfc comm: commands.values()) {
ServiceEntity item =
new ServiceEntity(my_hostname,
comm.getNodeName(), comm.getDescription());
item.addFeatures(CMD_FEATURES);
item.addIdentities(new ServiceIdentity("automation", "command-node",
comm.getDescription()));
com.addItems(item);
} // end of for (TaskCommandIfc comm: commands.values())
admins = (String[])props.get(ADMINS_PROP_KEY);