public EventSpace postConstruction ( ) { this . spaceRepository . postConstruction ( ) ; this . defaultSpace = createSpace ( OpenEventSpaceSpecification . class , this . defaultSpaceID ) ; if ( this . defaultSpace == null ) { // The default space could have been created before thanks to Hazelcast, // thus createSpace returns null because the space already exist, // in this case we return the already existing default space stored in the SpaceRepository this . defaultSpace = ( OpenEventSpace ) this . spaceRepository . getSpace ( new SpaceID ( this . id , this . defaultSpaceID , OpenEventSpaceSpecification . class ) ) ; } return this . defaultSpace ; }
Create the default space in this context .