@Override
    public void read(JmeImporter im) throws IOException {
        InputCapsule ic = im.getCapsule(this);
        type = ic.readEnum("varType", VarType.class, null);
        name = ic.readString("name", null);
        prefixedName = "m_" + name;
        switch (getVarType()) {
            case Boolean:
                value = ic.readBoolean("value_bool", false);
                break;
            case Float:
                value = ic.readFloat("value_float", 0f);
                break;
            case Int:
                value = ic.readInt("value_int", 0);
                break;
            case Vector2Array:
                Savable[] savableArray = ic.readSavableArray("value_savable_array", null);
                if (savableArray != null) {
                    value = new Vector2f[savableArray.length];
                    System.arraycopy(savableArray, 0, value, 0, savableArray.length);
                }
                break;
            case Vector3Array:
                savableArray = ic.readSavableArray("value_savable_array", null);
                if (savableArray != null) {
                    value = new Vector3f[savableArray.length];
                    System.arraycopy(savableArray, 0, value, 0, savableArray.length);
                }
                break;
            case Vector4Array:
                savableArray = ic.readSavableArray("value_savable_array", null);
                if (savableArray != null) {
                    value = new Vector4f[savableArray.length];
                    System.arraycopy(savableArray, 0, value, 0, savableArray.length);
                }
                break;
            case Matrix3Array:
                savableArray = ic.readSavableArray("value_savable_array", null);
                if (savableArray != null) {
                    value = new Matrix3f[savableArray.length];
                    System.arraycopy(savableArray, 0, value, 0, savableArray.length);
                }
                break;
            case Matrix4Array:
                savableArray = ic.readSavableArray("value_savable_array", null);
                if (savableArray != null) {
                    value = new Matrix4f[savableArray.length];
                    System.arraycopy(savableArray, 0, value, 0, savableArray.length);
                }
                break;
            default:
                value = ic.readSavable("value_savable", null);
                break;
        }

        typeCheck = ic.readBoolean("typeCheck", true);
    }
Returns the material parameter value as it would appear in a J3M
file. E.g.
<pre>
MaterialParameters {
    ABC : 1 2 3 4
}
</pre>
Assuming "ABC" is a Vector4 parameter, then the value
"1 2 3 4" would be returned by this method.

@return material parameter value as it would appear in a J3M file.
jme3-core/src/main/java/com/jme3/material/MatParam.java