[Bug 1045] Added sample code on how to deal with extensions