public void writeTo(StreamOutput out) throws IOException {
  out.writeString(name);
  out.writeString(type);
  Settings.writeSettingsToStream(settings,out);
}

public void writeTo ( StreamOutput out ) throws IOException { out . writeString ( name ) ; out . writeString ( type ) ; Settings . writeSettingsToStream ( settings , out ) ; }
writes repository metadata to stream output
