Schema (Schema schema, String refPath) { if (schema.getId().getFragment() == null) { refPath = "#" + refPath; } else { refPath = "#" + schema.getId().getFragment() + "/" + refPath; } return getSchemaStore().create(schema, refPath, getGenerationConfig().getRefFragmentPathDelimiters()); }