subsys/infinispan/src/main/java/org/commonjava/indy/subsys/infinispan/config/ISPNRemoteConfiguration.java
public boolean isRemoteCache( String cacheName )
    {
        if ( remotePatterns == null )
        {
            return false;
        }

        String[] patterns = remotePatterns.split( "," );
        for ( String pattern : patterns )
        {
            if ( isNotBlank( pattern ) )
            {
                if ( cacheName.matches( pattern ) || cacheName.equals( pattern ) )
                {
                    return true;
                }
            }
        }

        return false;
    }
public boolean isRemoteCache( String cacheName )
    {
        if ( remotePatterns == null )
        {
            return false;
        }

        String[] patterns = remotePatterns.split( "," );
        for ( String pattern : patterns )
        {
            if ( isNotBlank( pattern ) )
            {
                if ( cacheName.matches( pattern ) || cacheName.equals( pattern ) )
                {
                    return true;
                }
            }
        }

        return false;
    }
utils