}
public ParserUtils(boolean useValidation, boolean blockExternal) {
this.useValidation = useValidation;
if (entityResolver == null) {
this.entityResolverInstance = new LocalResolver(
DigesterFactory.SERVLET_API_PUBLIC_IDS,
DigesterFactory.SERVLET_API_SYSTEM_IDS, blockExternal);
} else {
this.entityResolverInstance = entityResolver;
}