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;
    }
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
utils