public SemaphoreConfig findSemaphoreConfig(String name) {
        name = getBaseName(name);
        SemaphoreConfig config = lookupByPattern(configPatternMatcher, semaphoreConfigs, name);
        if (config != null) {
            return config.getAsReadOnly();
        }
        return getSemaphoreConfig("default").getAsReadOnly();
    }
public SemaphoreConfig findSemaphoreConfig ( String name ) { name = getBaseName ( name ) ; SemaphoreConfig config = lookupByPattern ( configPatternMatcher , semaphoreConfigs , name ) ; if ( config != null ) { return config . getAsReadOnly ( ) ; } return getSemaphoreConfig ( "default" ) . getAsReadOnly ( ) ; }
Returns a read-only {@link com.hazelcast.core.ISemaphore}
configuration for the given name.
<p>
The name is matched by pattern to the configuration and by stripping the
partition ID qualifier from the given {@code name}.
If there is no config found by the name, it will return the configuration
with the name {@code default}.

@param name name of the semaphore config
@return the semaphore configuration
@throws ConfigurationException if ambiguous configurations are found
@see StringPartitioningStrategy#getBaseName(java.lang.String)
@see #setConfigPatternMatcher(ConfigPatternMatcher)
@see #getConfigPatternMatcher()
@see EvictionConfig#setSize(int)