@SuppressWarnings("unchecked")
    public void write(ByteBuffer out, Object o) {
        ObjectSerializer s = getSerializer(o);        
        s.write(this, out, o);
    }
Serialize an object accordingly with the std140 layout and write the
result to a BufferObject

@param out
           the output BufferObject where the object will be serialized
           (starting from the current position)
@param o
           the Object to serialize
jme3-core/src/main/java/com/jme3/shader/bufferobject/layout/BufferLayout.java