private LocalWorkspaceDataManagerStub getWorkspaceDataManager ( ) { if ( workspaceDataManager == null ) { synchronized ( this ) { if ( workspaceDataManager == null ) { LocalWorkspaceDataManagerStub workspaceDataManager = ( LocalWorkspaceDataManagerStub ) container . getComponentInstanceOfType ( LocalWorkspaceDataManagerStub . class ) ; if ( workspaceDataManager == null ) { throw new IllegalStateException ( "The workspace data manager cannot be found" ) ; } this . workspaceDataManager = workspaceDataManager ; } } } return workspaceDataManager ; }
Lazily gets the LocalWorkspaceDataManagerStub from the eXo container . This is required to prevent cyclic dependency