code: @Override
      public boolean exists() {
          if (this.cachedResource != null)
              return true;
  
          try {
              InputStream is = get();
              if (is != null) {
                  is.close();
                  return true;
              }
              return false;
          } catch (IOException ex) {
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                  Tr.debug(tc, "IOException while checking existence of resource", ex);
              return false;
          }
      }
docs: {@inheritDoc}