String message = irodsPI.getParsedTags();
if (message != null) {
length = message.getBytes(irodsConnection
.getPipelineConfiguration().getDefaultEncoding()).length;
}
<BUG>irodsConnection.send(createHeader(IRODSConstants.RODS_API_REQ,
length, 0, byteStreamLength, irodsPI.getApiNumber()));
irodsConnection.send(message);</BUG>
if (byteStreamLength > 0) {
dataSent += irodsConnection.send(byteStream, byteStreamLength,

String message = irodsPI.getParsedTags();
if (message != null) {
length = message.getBytes(irodsConnection
.getPipelineConfiguration().getDefaultEncoding()).length;
}
sendHeader(IRODSConstants.RODS_API_REQ, length, 0,
byteStreamLength, irodsPI.getApiNumber());
irodsConnection.send(message);
if (byteStreamLength > 0) {
dataSent += irodsConnection.send(byteStream, byteStreamLength,
