}
}
OPSType opsType = new OPSType(mode, version);
DocumentValidatorFactory factory = documentValidatorFactoryMap.get(opsType);
if (factory == null)
{
outWriter.println(Messages.get("display_help"));
System.err.println(String.format(
Messages.get("mode_version_not_supported"), mode, version));
throw new RuntimeException(String.format(Messages.get("mode_version_not_supported"), mode, version));
}
DocumentValidator check = factory.newInstance(report, path,
resourceProvider, modeMimeTypeMap.get(opsType),
version);
if (check.getClass() == EpubCheck.class)
{
int validationResult = ((EpubCheck)check).doValidate();