private String getServiceName(ServiceItem item)
{
for(int i = 0; i < item.attributeSets.length; i++) {
if(item.attributeSets[i] instanceof Name) {
NameBean bean = new NameBean();
bean.makeLink(item.attributeSets[i]);
return bean.getName();
}
}
return item.service.getClass().getName();
}