Rival commercial Chinese banks gained similar flexibility under a 1901 German Civil Code, and other Chinese commercial banks also took root in the foreign enclaves despite legal discrimination that they were facing there.