code: protected final void openSessionForPublish(String applicationId, List<String> permissions,
              SessionLoginBehavior behavior, int activityCode) {
          openSession(applicationId, permissions, behavior, activityCode, SessionAuthorizationType.PUBLISH);
      }
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
  @param behavior the login behavior to use with the session
  @param activityCode the activity code to use for the SSO activity