public <T extends ServiceDocument>Operation sendPostAndWaitForReplication(String serviceUri,T parameters) throws Throwable {
  Operation op=sendPostAndWait(serviceUri,parameters);
  String serviceLink=op.getBody(ServiceDocument.class).documentSelfLink;
  waitForReplication(serviceUri,serviceLink);
  return op;
}

public < T extends ServiceDocument > Operation sendPostAndWaitForReplication ( String serviceUri , T parameters ) throws Throwable { Operation op = sendPostAndWait ( serviceUri , parameters ) ; String serviceLink = op . getBody ( ServiceDocument . class ) . documentSelfLink ; waitForReplication ( serviceUri , serviceLink ) ; return op ; }
issue a post with the given parameters and waits for replication .
