// For catalog directories, include the "class" attribute, which indicates
// which class is responsible for finding and parsing the catalog list
_addAttr(attrs, "class", catalog.getClass().getName());
CatalogDirectory catDir = (CatalogDirectory) catalog;
URL url = catDir.getURL();
if (catDir.configNeedsUrl() && url != null) {
String protocol = url.getProtocol();
String host = url.getHost();
String path = url.getPath();
int port = url.getPort();
if (path != null && path.length() != 0) {