DownloadableLibraryFileDescription (ArtifactItem item, String url, String prefix) { String sourceUrl = item.getSourceUrl(); if (sourceUrl != null) { sourceUrl = prependPrefix(sourceUrl, prefix); } String docUrl = item.getDocUrl(); if (docUrl != null) { docUrl = prependPrefix(docUrl, prefix); } final String name = item.getName(); return new DownloadableLibraryFileDescriptionImpl(url, FileUtilRt.getNameWithoutExtension(name), FileUtilRt.getExtension(name), sourceUrl, docUrl, item.isOptional()); }