*/
private boolean validColorSpaceDestOutputProfile(ColorSpaceType expectedType)
throws ContentStreamException
{
boolean result = false;
ICCProfileWrapper profileWrapper;
try
{
profileWrapper = ICCProfileWrapper.getOrSearchICCProfile(context);
if (profileWrapper != null)
{
switch (expectedType)
{
case RGB:
result = profileWrapper.isRGBColorSpace();
break;
case CMYK:
result = profileWrapper.isCMYKColorSpace();
break;
default:
result = true;
break;
}