DocCode: using JSON.stringify to make downloaded csdlMetadata immutable