package myChat { function NMH_Type::send(%this) { %message = %this.getValue(); //your stuff here with %message parent::NMH_Type::send(%this); }};activatePackage(myChat);