Discrete workspace = new Discrete(workspaceID, rootDirectory, workspaceDescriptionFile);
// Register the resource managers.
workspace.registerNonCarAwareResourceManager(new CALSourceManager(new CALSourceFileStore(rootDirectory)));
workspace.registerNonCarAwareResourceManager(new MetadataManager(new MetadataFileStore(rootDirectory)));
workspace.registerNonCarAwareResourceManager(new GemDesignManager(new GemDesignFileStore(rootDirectory)));
workspace.registerNonCarAwareResourceManager(new CarManager(new CarFileStore(rootDirectory)));
workspace.registerNonCarAwareResourceManager(new UserResourceManager(new UserResourceFileStore(rootDirectory)));
return workspace;