Returns the skin mapping from the Jawr config

@param rsBrowser
the resource browser
@param config
the Jawr config
@return the skin mapping
431160
public Map<String, Map<String, VariantSet>> getSkinMapping(ResourceBrowser rsBrowser, JawrConfig config) {

		Map<String, Map<String, VariantSet>> currentSkinMapping = new HashMap<>();
		PropertiesConfigHelper props = new PropertiesConfigHelper(config.getConfigProperties(), JawrConstant.CSS_TYPE);
		Set<String> skinRootDirectories = props.getPropertyAsSet(JawrConstant.SKIN_DEFAULT_ROOT_DIRS);
		if (skinMappingType.equals(JawrConstant.SKIN_TYPE_MAPPING_SKIN_LOCALE)) {
			updateSkinMappingUsingTypeSkinLocale(rsBrowser, config, currentSkinMapping, skinRootDirectories);
		} else {
			updateSkinMappingUsingTypeLocaleSkin(rsBrowser, config, currentSkinMapping, skinRootDirectories);
		}

		return currentSkinMapping;
	}
515138
@Override
	public EmbeddedBrowser get() {
		LOGGER.debug("Setting up a Browser");
		// Retrieve the config values used
		ImmutableSortedSet<String> filterAttributes =
				configuration.getCrawlRules().getPreCrawlConfig().getFilterAttributeNames();
		long crawlWaitReload = configuration.getCrawlRules().getWaitAfterReloadUrl();
		long crawlWaitEvent = configuration.getCrawlRules().getWaitAfterEvent();

		// Determine the requested browser type
		EmbeddedBrowser browser = null;
		EmbeddedBrowser.BrowserType browserType =
				configuration.getBrowserConfig().getBrowserType();
		try {
			switch (browserType) {
				case CHROME:
					browser = newChromeBrowser(filterAttributes, crawlWaitReload, crawlWaitEvent,
							false);
					break;
				case CHROME_HEADLESS:
					browser = newChromeBrowser(filterAttributes, crawlWaitReload,
							crawlWaitEvent, true);
					break;
				case FIREFOX:
					browser = newFirefoxBrowser(filterAttributes, crawlWaitReload, crawlWaitEvent,
							false);
					break;
				case FIREFOX_HEADLESS:
					browser = newFirefoxBrowser(filterAttributes, crawlWaitReload, crawlWaitEvent,
							true);
					break;
				case REMOTE:
					browser = WebDriverBackedEmbeddedBrowser.withRemoteDriver(
							configuration.getBrowserConfig().getRemoteHubUrl(), filterAttributes,
							crawlWaitEvent, crawlWaitReload);
					break;
				case PHANTOMJS:
					browser =
							newPhantomJSDriver(filterAttributes, crawlWaitReload, crawlWaitEvent);
					break;
				default:
					throw new IllegalStateException("Unrecognized browser type "
							+ configuration.getBrowserConfig().getBrowserType());
			}
		} catch (IllegalStateException e) {
			LOGGER.error("Crawling with {} failed: " + e.getMessage(), browserType.toString());
			throw e;
		}

		/* for Retina display. */
		if (browser instanceof WebDriverBackedEmbeddedBrowser) {
			int pixelDensity =
					this.configuration.getBrowserConfig().getBrowserOptions().getPixelDensity();
			if (pixelDensity != -1)
				((WebDriverBackedEmbeddedBrowser) browser).setPixelDensity(pixelDensity);
		}

		plugins.runOnBrowserCreatedPlugins(browser);
		return browser;
	}
711678
def _getconf(self, rscpath, logger=None, conf=None):
        

        result = None

        resource = self.pathresource(rscpath=rscpath, logger=logger)

        if resource is not None:

            for cname in self._cnames(resource=resource):

                category = Category(name=cname)

                if result is None:
                    result = Configuration()

                result += category

                for param in self._params(resource=resource, cname=cname):

                    if conf is not None:
                        confparam = None

                        if cname in conf and param.name in conf[cname]:
                            confparam = conf[cname][param.name]

                        else:
                            confparam = conf.param(pname=param.name)

                        if confparam is not None:
                            svalue = param.svalue

                            param.update(confparam)

                            if svalue is not None:
                                param.svalue = svalue
                                param.resolve()

                    category += param

        return result
1191158
@SuppressWarnings("static-method")
	@Provides
	@Singleton
	public SarlConfig getSarlcConfig(ConfigurationFactory configFactory, Injector injector) {
		final SarlConfig config = SarlConfig.getConfiguration(configFactory);
		injector.injectMembers(config);
		return config;
	}
173730
public boolean matchesBrowser(String currentBrowser) {

        if (currentBrowser == null) {
            return false;
        }
        for (int i = 0; i < getBrowserPattern().size(); i++) {
            boolean matches = getBrowserPattern().get(i).matcher(currentBrowser.trim()).matches();
            if (matches) {
                if (LOG.isDebugEnabled()) {
                    LOG.debug(Messages.get().getBundle().key(Messages.LOG_BROWSER_MATCHES_CONFIG_1, currentBrowser));
                }
                return true;
            }
        }
        return false;
    }
944167
function (config, options) {
            if (this._subWindow) {
                if (this._subWindow.closed) {
                    // we probably did not catch correctly the unload event
                    this.close();
                } else {
                    // TODO: log error
                    return;
                }
            }

            var skinPath = config.skinPath;
            if (!skinPath && !(aria.widgets && aria.widgets.AriaSkin)) {
                var frameworkHref = ariaUtilsFrameATLoader.getFrameworkHref();
                var urlMatch = /aria\/aria-?templates-([^\/]+)\.js/.exec(frameworkHref);
                if (urlMatch && urlMatch.length > 1) {
                    skinPath = ariaCoreDownloadMgr.resolveURL("aria/css/atskin-" + urlMatch[1] + ".js", true);
                } else if (/aria\/bootstrap.js/.test(frameworkHref)) {
                    skinPath = ariaCoreDownloadMgr.resolveURL("aria/css/atskin.js", true);
                } else {
                    return;
                }
            }

            // default options
            if (!options) {
                options = "width=1024, height=800";
            }

            // create sub window. Use date to create a new one each time
            this._subWindow = Aria.$frameworkWindow.open("", config.title + ("" + (new Date()).getTime()), options);
            // this is for creating the same window (usefull for debugging)
            //this._subWindow = Aria.$frameworkWindow.open("", config.title, options);

            // The _subWindow can be null if the popup blocker is enabled in the browser
            if (this._subWindow == null) {
                return;
            }

            this._config = config;
            ariaUtilsAriaWindow.attachWindow();
            ariaUtilsAriaWindow.$on({
                "unloadWindow" : this._onMainWindowUnload,
                scope : this
            });

            ariaUtilsFrameATLoader.loadAriaTemplatesInFrame(this._subWindow, {
                fn: this._onFrameLoaded,
                scope: this
            }, {
                crossDomain: true,
                skipSkinCopy: !!skinPath,
                extraScripts: skinPath ? [skinPath] : [],
                keepLoadingIndicator: true,
                onBeforeLoadingAria: {
                    fn: this._registerOnPopupUnload,
                    scope: this
                }
            });
        }
348938
public JawrConfigManagerMBean getConfigMgr(String resourceType) {

		JawrConfigManagerMBean configMgr = null;
		if (resourceType.equals(JS_TYPE)) {
			configMgr = jsMBean;
		} else if (resourceType.equals(CSS_TYPE)) {
			configMgr = cssMBean;
		} else if (resourceType.equals(BINARY_TYPE)) {
			configMgr = binaryMBean;
		}

		return configMgr;
	}
1021717
@FFDCIgnore(XMLStreamException.class)
    public ConfigElement parseConfigElement(Reader reader) throws ConfigParserException {
        behaviorStack.add(MergeBehavior.MERGE);
        docLocationStack.add("Test Server");
        DepthAwareXMLStreamReader parser = null;
        try {
            parser = new DepthAwareXMLStreamReader(getXMLInputFactory().createXMLStreamReader(reader));
            ConfigElement configElement = null;
            int depth = parser.getDepth();
            while (parser.hasNext(depth)) {
                int event = parser.next();
                if (event == XMLStreamConstants.START_ELEMENT) {
                    configElement = parseConfigElement(parser, parser.getLocalName(), null, null, null, false);
                    break;
                }
            }
            parser.close();
            return configElement;
        } catch (IllegalArgumentException ex) {
            throw new ConfigParserException(ex);
        } catch (XMLStreamException e) {
            throw new ConfigParserException(e);
        }
    }
1323521
private Map<String, VariantSet> getVariants(ResourceBrowser rsBrowser, String rootDir, String defaultSkinName,
			String defaultLocaleName, boolean mappingSkinLocale) {
		Set<String> paths = rsBrowser.getResourceNames(rootDir);
		Set<String> skinNames = new HashSet<>();
		Set<String> localeVariants = new HashSet<>();
		for (Iterator<String> itPath = paths.iterator(); itPath.hasNext();) {
			String path = rootDir + itPath.next();
			if (rsBrowser.isDirectory(path)) {
				String dirName = PathNormalizer.getPathName(path);
				if (mappingSkinLocale) {
					skinNames.add(dirName);
					// check if there are locale variants for this skin,
					// and update the localeVariants if needed
					updateLocaleVariants(rsBrowser, path, localeVariants);
				} else {
					if (LocaleUtils.LOCALE_SUFFIXES.contains(dirName)) {
						localeVariants.add(dirName);
						// check if there are skin variants for this locales,
						// and update the skinVariants if needed
						updateSkinVariants(rsBrowser, path, skinNames);
					}
				}
			}
		}

		// Initialize the variant mapping for the skin root directory
		return getVariants(defaultSkinName, skinNames, defaultLocaleName, localeVariants);
	}
1152132
@RequestMapping(value = "configurations/{name}", method = RequestMethod.GET)
    public JIRAConfiguration getConfiguration(@PathVariable String name) {
        return jiraConfigurationService.getConfiguration(name);
    }
9512
public Module getPlumbingModules(final Config config)
    {
        return new Module() {
            @Override
            public void configure(final Binder binder) {
                binder.install(new ConfigModule(config));
                binder.install(getLifecycleModule());

                binder.install(new JmxModule());
                binder.install(new JmxStarterModule(config));
                binder.install(new JmxLoggingModule(getServerType()));

                binder.install(new JvmPauseAlarmModule());
            }
        };
    }
717511
@Override
    public SSLServerSocketFactory getSSLServerSocketFactory(SSLConfig config) throws SSLException {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            Tr.entry(tc, "getSSLServerSocketFactory");

        try {
            SSLContext context = getSSLContext(null, config);

            if (context != null) {
                if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
                    Tr.exit(tc, "getSSLServerSocketFactory");
                return context.getServerSocketFactory();
            }
        } catch (Exception e) {
            FFDCFilter.processException(e, getClass().getName(), "getSSLServerSocketFactory", this);
            if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
                Tr.exit(tc, "The following exception occurred in getSSLServerSocketFactory().", new Object[] { e });
            if (e instanceof SSLException)
                throw (SSLException) e;
            throw new SSLException(e);
        }

        throw new SSLException("SSLContext could not be created to return an SSLServerSocketFactory.");
    }
1163213
@Override
	public QueueBrowser createBrowser(Queue queueRef, String messageSelector) throws JMSException
    {
    	return createBrowser(idProvider.createID(), queueRef, messageSelector);
    }
1307216
public static SurfaceConfig imports(Configurer configurer)
    {
        Check.notNull(configurer);

        return imports(configurer.getRoot());
    }
437429
public ActionMapping getMapping(HttpServletRequest request, ConfigurationManager configManager) {
    ActionMapping mapping = new ActionMapping();
    parseNameAndNamespace(RequestUtils.getServletPath(request), mapping);

    String method = request.getParameter(MethodParam);
    if (Strings.isNotEmpty(method)) mapping.setMethod(method);
    return mapping;
  }
378543
public static <D extends ImageGray<D>>
	OrientationHistogramSift<D> sift(ConfigSiftOrientation config , Class<D> derivType ) {
		if( config == null )
			config = new ConfigSiftOrientation();
		config.checkValidity();

		return new OrientationHistogramSift(config.histogramSize,config.sigmaEnlarge,derivType);
	}
248697
private void updateSkinVariants(ResourceBrowser rsBrowser, String path, Set<String> skinVariants) {

		Set<String> skinPaths = rsBrowser.getResourceNames(path);
		for (Iterator<String> itSkinPath = skinPaths.iterator(); itSkinPath.hasNext();) {
			String skinPath = path + itSkinPath.next();
			if (rsBrowser.isDirectory(skinPath)) {
				String skinDirName = PathNormalizer.getPathName(skinPath);
				skinVariants.add(skinDirName);
			}
		}
	}