private static ActionType translate( NetAction.ActionType actionType)
 {
     switch(actionType)
     {
         case NetAction.ActionType.PUBLISH: return ActionType.PUBLISH;
         case NetAction.ActionType.POLL: return ActionType.POLL;
         case NetAction.ActionType.ACKNOWLEDGE: return ActionType.ACKNOWLEDGE;
         case NetAction.ActionType.SUBSCRIBE: return ActionType.SUBSCRIBE;
         case NetAction.ActionType.UNSUBSCRIBE: return ActionType.UNSUBSCRIBE;
         case NetAction.ActionType.PING: return ActionType.PING;
         case NetAction.ActionType.AUTH: return ActionType.AUTH;
     }
     throw new Exception("Unexpected ActionType while marshalling message " + actionType.ToString() );
 }
 private static DestinationType translate(NetAction.DestinationType destination)
 {
     switch(destination)
     {
         case NetAction.DestinationType.QUEUE: return DestinationType.QUEUE;
         case NetAction.DestinationType.TOPIC: return DestinationType.TOPIC;
         case NetAction.DestinationType.VIRTUAL_QUEUE: return DestinationType.VIRTUAL_QUEUE;
     }
     throw new Exception("Unexpected DestinationType while marshalling message " + destination.ToString() );
 }