public void validate(PreflightContext context) throws ValidationException
{
PreflightPath vPath = context.getValidationPath();
if (vPath.isEmpty() || !vPath.isExpectedType(COSDictionary.class))
{
throw new ValidationException("ExtGState validation required at least a Resource dictionary");
}
COSDictionary extGStatesDict = (COSDictionary) vPath.peek();
List<COSDictionary> listOfExtGState = extractExtGStateDictionaries(context, extGStatesDict);
validateTransparencyRules(context, listOfExtGState);