// The remote repository is a SimpleArtifactRepository with mirrors configured
log.debug(
"Repository " + getId() + ": configureMirrors: found single mirrors URL=" + mirrorsURL);
final StorageFileItem remoteMirrorsItem = getMirrorsItemRemote(mirrorsURL);
final ContentLocator content =
new PreparedContentLocator(((StorageFileItem) remoteMirrorsItem).getInputStream(),
"text/xml", remoteMirrorsItem.getLength());
mirrorsItem =
new DefaultStorageFileItem(this, new ResourceStoreRequest(PRIVATE_MIRRORS_PATH),
true /* isReadable */, false /* isWritable */, content);
mirrorsItem = doCacheItem(mirrorsItem);