code: 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;
      }
docs: utils