protected String getOwner(URI queue) {
return get(Splitter.on('/').split(queue.getPath()), 1);
}
protected String recreateQueueInRegion(String queueName, String region) {
QueueApi queueApi = api.getQueueApiForRegion(region);
URI result = queueApi.get(queueName);
if (result != null) {
queueApi.delete(result);
}
URI queue = queueApi.create(queueName);
assertQueueInList(region, queue);
queues.add(queue);
return queueName;
}