return new BroadcastAction(ACTION.CONTINUE, message);
}
private Object getSingleResponseObject(ItemStateListBean stateBean,
Item item, HttpServletRequest request) {
ItemStateListBean responseBean;
if (stateBean == null) {
stateBean = new ItemStateListBean();
}
ItemListBean list = stateBean.stateList;
if (item instanceof GroupItem) {
GroupItem groupItem = (GroupItem) item;
// get the base item
if (groupItem.getBaseItem() != null) {
item = groupItem.getBaseItem();
}
}
list.entries.add(new JAXBElement(new QName(item.getName()),
String.class, item.getState().toString()));
responseBean = new ItemStateListBean(list);
responseBean.index = System.currentTimeMillis();
return responseBean;
}