ITagDirRecord record = (ITagDirRecord) reference;
document = buildCMDocumentFromFolder(record.getPath());
}
break;
case (ITaglibRecord.URL) : {
IURLRecord record = (IURLRecord) reference;
URL url = record.getURL();
InputStream urlContents = JarUtilities.getInputStream(url);
if (urlContents != null) {
document = (CMDocumentImpl) buildCMDocument(record.getBaseLocation(), urlContents);
String urlString = url.toString();
document.setLocationString(urlString);
if (document.getSmallIcon() != null) {
String iconPath = URIHelper.normalize(((TLDDocument) document).getSmallIcon(), urlString, "/"); //$NON-NLS-1$
document.setProperty(JSP12TLDNames.SMALL_ICON, iconPath);