SelfReference support for appengine