if (base instanceof Source) {
links = ((Source)base).getLinks(Link.REL_LICENSE);
} else if (base instanceof Entry) {
Entry entry = (Entry)base;
Source source = entry.getSource();
Base parent = entry.getParentElement();
links = entry.getLinks(Link.REL_LICENSE);
if (inherited && (links == null || links.size() == 0) && source != null) {
links = getLicense(source, false);
}
if (inherited && (links == null || links.size() == 0) && parent != null) {