if (entity != null) {
// Get the connector service to callback
ConnectorService connectorService = getConnectorService(request);
if (connectorService != null)
connectorService.beforeSend(entity);
// In order to workaround bug #6472250
// (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6472250),
// it is very important to reuse that exact same "rs" reference
// when manipulating the request stream, otherwise "insufficient