void (ResourceRegistrar registrar, String schemaUrl, String schemaPath) { registrar.addStdResource(schemaUrl, schemaPath, getClass()); if (schemaUrl.startsWith("http://")) { String schemaUrlHttps = schemaUrl.replace("http://", "https://"); registrar.addStdResource(schemaUrlHttps, schemaPath, getClass()); } }