protected void writeException(final ChannelAssociation channelAssociation, final MarshallerFactory marshallerFactory,
final short invocationId, final Throwable t,
final Map<String, Object> attachments) throws IOException {
final DataOutputStream outputStream;
final MessageOutputStream messageOutputStream;
try {
messageOutputStream = channelAssociation.acquireChannelMessageOutputStream();
} catch (Exception e) {
throw EjbLogger.ROOT_LOGGER.failedToOpenMessageOutputStream(e);
}