LWJGLMaterialState NotSerializable

Hi everybody!

Has anyone of you ever tried to save an object that has some TriMesh class variables using the Serializable interface? I'm just stuck, because I get this error:

java.io.NotSerializableException: com.jme.scene.state.lwjgl.LWJGLMaterialState

My code to serialize the object looks like this:

ObjectOutputStream objOut = new ObjectOutputStream(new BufferedOutputStream(new FileOutputStream("test.ser")));

I know that this error occurs because the LWJGLMaterialState class does not implement the Serializable interface. Is there another way to save TriMesh variables? Any ideas?

Thanks in advance and best regards,