if (COSUtils.isString(csInlinedBase, cosDocument))
{
// In InlinedImage only DeviceGray/RGB/CMYK and restricted Indexed
// color spaces are allowed.
String colorSpace = COSUtils.getAsString(csInlinedBase, cosDocument);
ColorSpaces cs = null;
try
{
cs = ColorSpaces.valueOf(colorSpace);
}