public CreateIndexRequest source(XContentBuilder source){
  return source(source.bytes());
}

public CreateIndexRequest source ( XContentBuilder source ) { return source ( source . bytes ( ) ) ; }
sets the settings and mappings as a single source .
