} else if (key.equals("addSecurityGroup")) {
AddSecurityGroupRequest request = gson.fromJson(entry.getValue(), AddSecurityGroupRequest.class);
return addRemoveSecurityGroup(instance, request.name, false);
} else if (key.equals("removeSecurityGroup")) {
RemoveSecurityGroupRequest request = gson.fromJson(entry.getValue(), RemoveSecurityGroupRequest.class);
return addRemoveSecurityGroup(instance, request.name, true);
} else if (key.equals("createImage")) {
CreateImageRequest request = gson.fromJson(entry.getValue(), CreateImageRequest.class);