code: public boolean canValidate(Document doc) {
          XsdSchema schema = schemaMappingStrategy.getSchema(schemas, doc);
          return schema != null;
      }
docs: Find the matching schema for document using given schema mapping strategy.
  @param doc the document instance to validate.
  @return boolean flag marking matching schema instance found