@Override
    public int getColorSpaceType() {
        switch (colorspace) {
            case ColorSpace.CS_sRGB:
            case ColorSpace.CS_LINEAR_RGB:
                return ColorSpace.TYPE_RGB;
            case ColorSpace.CS_CIEXYZ:
                return ColorSpace.TYPE_XYZ;
            case ColorSpace.CS_PYCC:
                return ColorSpace.TYPE_3CLR;
            case ColorSpace.CS_GRAY:
                return ColorSpace.TYPE_GRAY;
            default:
                throw new UnsupportedOperationException("Stub cannot perform this operation"); //$NON-NLS-1$
        }
    }