case TYPE_XYZ:
converter = new CieXyzConverter();
break;
default:
if (profile instanceof ICC_ProfileRGB)
converter = new RgbProfileConverter((ICC_ProfileRGB) profile);
else if (profile instanceof ICC_ProfileGray)
converter = new GrayProfileConverter((ICC_ProfileGray) profile);
else
converter = new ClutProfileConverter(profile);
break;