Take care with using configure with getConfiguration though. Search the forum for posts by me on the subject
Eg