code:         public boolean check(String path, Resource resource)
          {
              int slash = path.lastIndexOf('/');
              if (slash<0)
                  return false;
              String suffix=path.substring(slash);
              return resource.getAlias().toString().endsWith(suffix);
          }
      }
  }
  