{
validator = new XObjFormValidator(context, (PDFormXObject) vPath.peek());
}
else if (!vPath.isEmpty() && vPath.isExpectedType(PDPostScriptXObject.class))
{
validator = new XObjPostscriptValidator(context, (PDPostScriptXObject) vPath.peek());
}
else if (!vPath.isEmpty() && vPath.isExpectedType(COSStream.class))
{
context.addValidationError(new ValidationError(PreflightConstants.ERROR_GRAPHIC_XOBJECT_INVALID_TYPE, "Invalid XObject subtype"));
}