server/src/main/java/com/orientechnologies/orient/server/network/protocol/http/OHttpResponseWrapper.java
public OHttpResponseWrapper writeRecord(final ORecord iRecord, final String iFetchPlan) throws IOException {
    response.writeRecord(iRecord, iFetchPlan, null);
    return this;
  }
public OHttpResponseWrapper writeRecord(final ORecord iRecord, final String iFetchPlan) throws IOException {
    response.writeRecord(iRecord, iFetchPlan, null);
    return this;
  }
public OHttpResponseWrapper writeRecord ( final ORecord iRecord , final String iFetchPlan ) throws IOException { response . writeRecord ( iRecord , iFetchPlan , null ) ; return this ; }
Writes a record as response. The record is serialized in JSON format.

@param iRecord
Record to serialize
@param iFetchPlan
Fetch plan to specify nested records
@return The object itself for fluent chained calls
Writes a record as response . The record is serialized in JSON format .