private void writeObjectDefs(ByteBuffer buffer, RemoteObjectDefMessage defMsg) throws IOException{
        ObjectDef[] defs = defMsg.objects;
        buffer.put( (byte) defs.length );
        for (ObjectDef def : defs)
            writeObjectDef(buffer, def);
    }
{@link RmiSerializer} is responsible for serializing RMI messages
like define object, call, and return.

@author Kirill Vainer
jme3-networking/src/main/java/com/jme3/network/rmi/RmiSerializer.java