byte[] band = dataBuf.getRedBand();
    private byte[] getColorBand(RGBBuffer dataBuf, Color color)    {        byte[] band = dataBuf.getRedBand();        if (color.getGreen().intValue() == 255)            band = dataBuf.getGreenBand();        else if (color.getBlue().intValue() == 255)            band = dataBuf.getBlueBand();        //Else it must have been red.        return band;    }