code: protected final void openSessionForPublish(String applicationId, List<String> permissions) {
          openSessionForPublish(applicationId, permissions, SessionLoginBehavior.SSO_WITH_FALLBACK,
                  Session.DEFAULT_AUTHORIZE_ACTIVITY_CODE);
      }
docs: Opens a new session with publish permissions. If either applicationID is null,
  this method will default to using the value from the associated
  meta-data value. The permissions list cannot be null.
  
  @param applicationId the applicationID, can be null
  @param permissions the permissions list, cannot be null