class WorkbenchPreferenceScopeResolutionStrategiesImpl implements WorkbenchPreferenceScopeResolutionStrategies {

    @Override
    public PreferenceScopeResolutionStrategyInfo getSpaceInfoFor(final String scopeKey) {
        PreferenceScopeResolutionStrategy scopeResolutionStrategy;

        if (scopeKey != null) {
            final PreferenceScope spaceScope = scopeFactory.createScope(WorkbenchPreferenceScopes.SPACE, scopeKey);
            scopeResolutionStrategy = new WorkbenchPreferenceScopeResolutionStrategy(scopeFactory, spaceScope);
        } else {
            scopeResolutionStrategy = new WorkbenchPreferenceScopeResolutionStrategy(scopeFactory);
        }

        return scopeResolutionStrategy.getInfo();
    }

    public  WorkbenchPreferenceScopeResolutionStrategiesImpl();
    @Inject public  WorkbenchPreferenceScopeResolutionStrategiesImpl( final PreferenceScopeFactory scopeFactory );

}