private void closeOutputStreams(OutputStream headerStream,OutputStream bodyStream) throws IOException {
  try {
    if ((headerStream != null) && (headerStream != bodyStream)) {
      headerStream.close();
    }
  }
  finally {
    if (bodyStream != null) {
      bodyStream.close();
    }
  }
}

private void closeOutputStreams ( OutputStream headerStream , OutputStream bodyStream ) throws IOException { try { if ( ( headerStream != null ) && ( headerStream != bodyStream ) ) { headerStream . close ( ) ; } } finally { if ( bodyStream != null ) { bodyStream . close ( ) ; } } }
closes output streams used to update message
