void persist(Writer writer) throws IOException {
  final SolrQueryResponse response=new SolrQueryResponse();
  response.add(IndexSchema.SCHEMA,getNamedPropertyValues());
  final NamedList args=new NamedList(Arrays.<Object>asList("indent","on"));
  final LocalSolrQueryRequest req=new LocalSolrQueryRequest(null,args);
  final SchemaXmlWriter schemaXmlWriter=new SchemaXmlWriter(writer,req,response);
  schemaXmlWriter.setEmitManagedSchemaDoNotEditWarning(true);
  schemaXmlWriter.writeResponse();
  schemaXmlWriter.close();
}

void persist ( Writer writer ) throws IOException { final SolrQueryResponse response = new SolrQueryResponse ( ) ; response . add ( IndexSchema . SCHEMA , getNamedPropertyValues ( ) ) ; final NamedList args = new NamedList ( Arrays . < Object > asList ( "indent" , "on" ) ) ; final LocalSolrQueryRequest req = new LocalSolrQueryRequest ( null , args ) ; final SchemaXmlWriter schemaXmlWriter = new SchemaXmlWriter ( writer , req , response ) ; schemaXmlWriter . setEmitManagedSchemaDoNotEditWarning ( true ) ; schemaXmlWriter . writeResponse ( ) ; schemaXmlWriter . close ( ) ; }
writes the schema in schema . xml format to the given writer
