try {
int messageLength = 0;
if (message != null) {
messageLength = message.getBytes(getEncoding()).length;
}
<BUG>getIrodsConnection().send(
createHeader(type, messageLength, errorLength,

byteBufferLength, intInfo));
if (isPamFlush()) {</BUG>
log.debug("doing extra pam flush for iRODS 3.2");

try {
int messageLength = 0;
if (message != null) {
messageLength = message.getBytes(getEncoding()).length;
}
sendHeader(type, messageLength, errorLength, byteBufferLength,
intInfo);
if (isPamFlush()) {
log.debug("doing extra pam flush for iRODS 3.2");
