public Object[] retrieveServiceStatus(Location location) { if (location == null || location.getServices() == null) { return ArrayUtils.EMPTY_OBJECT_ARRAY; } try { return getSipxProcessContext().getStatus(location, true); } catch (UserException e) { IValidationDelegate validator = getValidator(this); validator.record(new ValidatorException(e.getMessage())); Collection<ServiceStatus> serviceStatusList = new ArrayList<ServiceStatus>(); for (LocationSpecificService lss : location.getServices()) { SipxService service = lss.getSipxService(); String serviceName = service.getProcessName(); if (serviceName != null) { serviceStatusList.add(new ServiceStatus(service.getBeanId(), Undefined)); } } return serviceStatusList.toArray(); } }