// only the owner can do this...
if (!isOwner(inventoryItem.getConnection().getUser())) {
return error(ErrorMessages.APPLICATION_ACCESS_DENIED, Response.status(Response.Status.BAD_REQUEST));
}
inventoryService.rebootComputeInstance(inventoryItem);
} catch (CommandNotAllowedException cnae) {
return error(cnae.getMessage(), Response.status(Response.Status.BAD_REQUEST));
} catch (InvalidCredentialsException icce) {
return error(icce.getMessage(), Response.status(Response.Status.BAD_REQUEST));
}