You could have also used a proxy style as proposed in the another thread.