This questionThis question picked up two answers before it was closed as stub-code. Now, the OP added the missing snippets without removing a single line, and the answers are likely still valid as they only covered the structure of the code, which was unchanged. Why was this edit rolled back as invalidating the answers when it didn't invalidate any answers, and it made an off-topic question on-topic?
replaced http://codereview.stackexchange.com/ with https://codereview.stackexchange.com/