config/src/main/java/org/springframework/security/config/annotation/web/configurers/SessionManagementConfigurer.java
SessionCreationPolicy getSessionCreationPolicy() {
		if (this.sessionPolicy != null) {
			return this.sessionPolicy;
		}

		SessionCreationPolicy sessionPolicy =
				getBuilder().getSharedObject(SessionCreationPolicy.class);
		return sessionPolicy == null ?
				SessionCreationPolicy.IF_REQUIRED : sessionPolicy;
	}
SessionCreationPolicy getSessionCreationPolicy() {
		if (this.sessionPolicy != null) {
			return this.sessionPolicy;
		}

		SessionCreationPolicy sessionPolicy =
				getBuilder().getSharedObject(SessionCreationPolicy.class);
		return sessionPolicy == null ?
				SessionCreationPolicy.IF_REQUIRED : sessionPolicy;
	}
SessionCreationPolicy getSessionCreationPolicy ( ) { if ( this . sessionPolicy != null ) { return this . sessionPolicy ; } SessionCreationPolicy sessionPolicy = getBuilder ( ) . getSharedObject ( SessionCreationPolicy . class ) ; return sessionPolicy == null ? SessionCreationPolicy . IF_REQUIRED : sessionPolicy ; }
Gets the {@link SessionCreationPolicy}. Can not be null.
@return the {@link SessionCreationPolicy}
Gets the {