What? I don't get the analogy.
The author is saying that when he is "in Rome" he finds himself not doing what the Romans do, but rather doing what the Parisians do or what the Berliners do, since he has spent so much time in his metaphorical Paris and Berlin.