}
@SuppressWarnings("unchecked")
private <T> List<T> doGetServices(Map.Entry<ServiceElement, OperationalStringManager> entry, Class<T> type) {
List<T> services = new ArrayList<T>();
ServiceElement serviceElement = entry.getKey();
OperationalStringManager opMgr = entry.getValue();
try {
ServiceBeanInstance[] instances = new ServiceBeanInstance[0];
try {
instances = opMgr.getServiceBeanInstances(serviceElement);
} catch(RemoteException e) {
if(!ThrowableUtil.isRetryable(e)) {
logger.warn("Unable to connect to OperationalStringManager for instances of type {}, service: {}/{}",
type.getName(), serviceElement.getOperationalStringName(), serviceElement.getName());
return services;
}
}
StringBuilder sb = new StringBuilder();
for(ServiceBeanInstance instance : instances) {