{
context.addValidationError(new ValidationError(PreflightConstants.ERROR_GRAPHIC_MISSING_OBJECT, "ShadingPattern validation required at least a PDResources"));
}
else
{
PDShadingResources shaddingResource = (PDShadingResources) vPath.peek();
PDPage page = vPath.getClosestPathElement(PDPage.class);
checkColorSpace(context, page, shaddingResource);
checkGraphicState(context, page, shaddingResource);
}
}