The locked door design pattern