@Override
	public AccessionID getAccession() {
		AccessionID accessionID = new AccessionID();
		if (uniprotDoc == null) {
			return accessionID;
		}
		try {
			Element uniprotElement = uniprotDoc.getDocumentElement();
			Element entryElement = XMLHelper.selectSingleElement(uniprotElement, "entry");
			Element nameElement = XMLHelper.selectSingleElement(entryElement, "name");
			accessionID = new AccessionID(nameElement.getTextContent(), DataSource.UNIPROT);
		} catch (XPathExpressionException e) {
			logger.error("Exception: ", e);
		}
		return accessionID;
	}
@ Override public AccessionID getAccession ( ) { AccessionID accessionID = new AccessionID ( ) ; if ( uniprotDoc == null ) { return accessionID ; } try { Element uniprotElement = uniprotDoc . getDocumentElement ( ) ; Element entryElement = XMLHelper . selectSingleElement ( uniprotElement , "entry" ) ; Element nameElement = XMLHelper . selectSingleElement ( entryElement , "name" ) ; accessionID = new AccessionID ( nameElement . getTextContent ( ) , DataSource . UNIPROT ) ; } catch ( XPathExpressionException e ) { logger . error ( "Exception: " , e ) ; } return accessionID ; }
@return