Changing block(Chest) NBT

I want to add LootTable

        Chest chest = (Chest)Sponge.getServer().getWorld("world").get().getLocation(chestc).getTileEntity().get();
        DataContainer nbt = chest.toContainer();
        nbt.set(DataQuery.of("UnsafeData","LootTable"),"test:chests/table");
        chest.setRawData(nbt.getContainer());
        
        logger.info(chest.toContainer().get(DataQuery.of("UnsafeData")).toString()); // print

But, NBT has not change
I print DataView and nothing has changed

Optional[MemoryDataView{path=UnsafeData, safety=ALL_DATA_CLONED, map={x=300, y=1, z=1, Items=[], id=minecraft:chest, Lock=}}]

I think setRawData is not implemented so that’s why it’s not working.