Replace public statics with private to prevent deprecation errors

These public statics are deprecated and will fail tests under the framework master branch
Set the site to draft mode before fetching a versioned dataobject