change the `setConfiguration()` to static
fix `reopenSession()` method session for publish permissions