protected Exception refineException(HttpCommand command, HttpResponse response, Exception exception,
AzureStorageError error, String message) {
switch (response.getStatusCode()) {
case 404:
if (!command.getCurrentRequest().getMethod().equals("DELETE")) {
exception = new ResourceNotFoundException(message, exception);
List<String> parts = Lists.newArrayList(Splitter.on('/').split(
command.getCurrentRequest().getEndpoint().getPath()));
parts.remove("");
if (parts.size() > 0) {
String container = parts.remove(0);