def get_sitetree():
sitetree = getattr(_THREAD_LOCAL, _THREAD_SITETREE, None)<EOL>if sitetree is None:<EOL><INDENT>sitetree = SiteTree()<EOL>setattr(_THREAD_LOCAL, _THREAD_SITETREE, sitetree)<EOL><DEDENT>return sitetree<EOL>
Returns SiteTree (thread-singleton) object, implementing utility methods.

    :rtype: SiteTree