public ClientResponse apply(final ClientRequest request) {
try {
request.setStreamProvider(new OutboundMessageContext.StreamProvider() {
@Override
public OutputStream getOutputStream(final int contentLength) throws IOException {
return new NullOutputStream();
}
});
request.writeEntity();
if (request.getHeaderString("Content-Type").contains("boundary")) {