import java.util.*; class CommMP { public CommMPListener parent; public void set(CommMPListener parent) { this.parent = parent; } public void give(CommMessage_Proxy c) { if(parent != null) { parent.give(c); } } public void take(CommMessage_Proxy c) { if(parent != null) { parent.take(c); } } }