if (ListUtil.size(queueFrames) <= 0) {
return Collections.emptyList();
}
List<ExternalResourceDescriptor> queueDescriptors = new ArrayList<ExternalResourceDescriptor>(queueFrames.size());
ColorManager colorManager = ColorManager.getInstance();
for (Frame queueFrame : queueFrames) {
Operation op = queueFrame.getOperation();
String host = op.get("host", String.class);
int port = op.getInt("port", (-1));
String color = colorManager.getColor(op);
String finalExchange = getFinalExchangeName(getExchange(op));
String finalRoutingKey = getFinalRoutingKey(getRoutingKey(op));
String exchangeResourceName = buildExternalResourceName(finalExchange, finalRoutingKey, false, host, port);