protected Class getMessageType( Method m ) {
        Class<?>[] parms = m.getParameterTypes();
        return parms[parms.length-1];    
    }
Convenience method that returns the message type as
 reflectively determined for a particular method.  This
 only works with methods that actually have arguments.
 This implementation returns the last element of the method's
 getParameterTypes() array, thus supporting both 
 method(connection, messageType) and method(messageType)
 calling forms.
jme3-networking/src/main/java/com/jme3/network/util/AbstractMessageDelegator.java