- // unilaterally set the default id to the EMBL_EBI link
-
- if (nonselectedUrls.containsKey(UrlConstants.DEFAULT_LABEL))
- {
- // default key must be selected so remove from nonselected list
- nonselectedUrls.remove(UrlConstants.DEFAULT_LABEL);
- }
-
- if (!selectedUrls.containsKey(UrlConstants.DEFAULT_LABEL))
+ // unilaterally set the primary id to the EMBL_EBI link
+ if ((!nonselectedUrls.containsKey(UrlConstants.DEFAULT_LABEL))
+ && (!selectedUrls.containsKey(UrlConstants.DEFAULT_LABEL)))