LogMessage msg = new LogMessage(); msg.println("Get thumbnail direct, PixelsID: "+pix.getId()); Logger logger = context.getLogger(); logger.debug(this, msg);
    public BufferedImage getThumbnail(PixelsData pix, int sizeX, int sizeY)        throws RenderingServiceException    {        try {            byte[] v = gateway.getThumbnail(pix.asPixels(), sizeX, sizeY);            return createImage(v);        } catch (Exception e) {            throw new RenderingServiceException("Get Thumbnail", e);        }    }