short id = (short) request.getAttributeLong(AdminService.A_ID);
long idLong = request.getAttributeLong(AdminService.A_ID); Volume.validateID(idLong); short id = (short) idLong;
    public Element handle(Element request, Map context) throws ServiceException {        ZimbraContext lc = getZimbraContext(context);        short id = (short) request.getAttributeLong(AdminService.A_ID);        Volume vol = Volume.getById(id);        Element eVol = request.getElement(AdminService.E_VOLUME);        String name  = eVol.getAttribute(AdminService.A_VOLUME_NAME, vol.getName());        String path  = eVol.getAttribute(AdminService.A_VOLUME_ROOTPATH, vol.getRootPath());        short type   = (short) eVol.getAttributeLong(AdminService.A_VOLUME_TYPE, vol.getType());        // TODO: These "bits" parameters are ignored inside Volume.update() for now.//        short mgbits = (short) eVol.getAttributeLong(AdminService.A_VOLUME_MGBITS, vol.getMboxGroupBits());//        short mbits  = (short) eVol.getAttributeLong(AdminService.A_VOLUME_MBITS,  vol.getMboxBits());//        short fgbits = (short) eVol.getAttributeLong(AdminService.A_VOLUME_FGBITS, vol.getFileGroupBits());//        short fbits  = (short) eVol.getAttributeLong(AdminService.A_VOLUME_FBITS,  vol.getFileBits());        boolean compressBlobs = eVol.getAttributeBool(AdminService.A_VOLUME_COMPRESS_BLOBS, vol.getCompressBlobs());        long compressionThreshold = eVol.getAttributeLong(AdminService.A_VOLUME_COMPRESSION_THRESHOLD,                                                          vol.getCompressionThreshold());//        Volume.update(vol.getId(), type, name, path, mgbits, mbits, fgbits, fbits,//                      compressBlobs, compressionThreshold);        Volume.update(vol.getId(), type, name, path, (short) 0, (short) 0, (short) 0, (short) 0,                      compressBlobs, compressionThreshold);        Element response = lc.createElement(AdminService.MODIFY_VOLUME_RESPONSE);        return response;    }