{
validator = new XObjImageValidator(context, (PDXObjectImage) vPath.peek());
}
else if (!vPath.isEmpty() && vPath.isExpectedType(PDXObjectForm.class))
{
validator = new XObjFormValidator(context, (PDXObjectForm) vPath.peek());
}
else if (!vPath.isEmpty() && vPath.isExpectedType(COSStream.class))
{
COSStream stream = (COSStream) vPath.peek();
String subType = stream.getNameAsString(COSName.SUBTYPE);