//similar code in PaletteHelper and above
String uri = tldRec.getDescriptor().getURI();
if (uri == null || uri.trim().equals("")) { //$NON-NLS-1$
//need to construct valid string representing taglib identifier
CMDocumentFactoryTLD factory = new CMDocumentFactoryTLD();
TLDDocument doc = (TLDDocument)factory.createCMDocument(tldRec);
if (tldRec.getRecordType() == ITaglibRecord.TLD) {
uri = getStandaloneTLDURI(doc, project);
}
else if (tldRec.getRecordType() == ITaglibRecord.TAGDIR) {
uri = getTagDirURI(doc, project);