protected DataSchema schemaFromName(ValidatorContext context, String schemaName)
{
StringBuilder sb = new StringBuilder();
Parameter parameter = getParameter(context.validationOptions());
DataSchemaResolver resolver = parameter.resolver();
NamedDataSchema schema;
if (resolver == null)
{
schema = null;
context.addResult(new Message(context.dataElement().path(schemaName),
parameter.isValidSchema(),
"%1$s cannot obtain schema for \"%2$s\", no resolver",
AnyRecordValidator.class.getName(), schemaName));
}
else
{
schema = resolver.findDataSchema(schemaName, sb);
if (schema == null)
{
context.addResult(new Message(context.dataElement().path(schemaName),
parameter.isValidSchema(),
"%1$s cannot obtain schema for \"%2$s\" (%3$s)",