code: @Override
      public boolean isReadonly( final ArtifactStore store )
      {
          if ( store != null )
          {
              if ( store.getKey().getType() == hosted && ( (HostedRepository) store ).isReadonly() )
              {
                  return true;
              }
          }
          return false;
      }
docs: TODO: currently we only check hosted readonly to prevent unexpected removing of both files and repo itself.
  We may expand to remote or group in the future to support functions like remote repo "deploy-through".