I cannot lead you to such a resource, since I don't know of one. If I had to do it, I'd read the source code of the classes I pointed you at and go from there.
Someone else, however, might be able to help you with this, let's see if someone else chimes in.
