/*
 * Copyright 2012-2013 Continuuity,Inc. All Rights Reserved.
 */

package com.continuuity.api.procedure;

import java.io.IOException;

/**
 * This interface defines a response generator.
 */
public interface ProcedureResponder {
  /**
   * Adds to the response to be returned to the caller.
   *
   * @param response An instance of {@link ProcedureResponse} containing the response to be returned.
   * @return  An instance of {@link ProcedureResponse.Writer} for writing data of the response.
   * @throws IOException When there is issue sending the response to the callee.
   */
  ProcedureResponse.Writer response(ProcedureResponse response) throws IOException;
}

@@ -241,19 +241,16 @@
  * Adds 
-to 
 the resp
@@ -283,16 +283,232 @@
  caller.
+ Calling this method multiple times to the same%0A   * %7B@link ProcedureResponder%7D will return the same %7B@link ProcedureResponse.Writer%7D instance and the%0A   * latter submitted %7B@link ProcedureResponse%7D would be ignored.
 %0A   *%0A  

Update javadocs to describe exactly how the method behaves.