if (VmIsolate.currentIsolate() != sender) {
// Current isolate is not the sender for this message
throw new UnsupportedOperationException();
}
if (this.closed) {
throw new ClosedLinkException();
}
final LinkMessageImpl messageImpl = (LinkMessageImpl) message;
synchronized (this) {
if (this.closed) {
throw new ClosedLinkException();
}
// Send message
messages.add(messageImpl);
notifyAll();
}