/** * Sets Interactor Name and ID. * * @param interactor Data Services Interactor object. * @param jaxbInteractor JAXB Protein Interactor Object. */ private void setNameId(Interactor interactor, InteractorElementType jaxbInteractor) { NamesType names = new NamesType(); names.setShortLabel(interactor.getName()); String fullName = (String) interactor.getAttribute(InteractorVocab.FULL_NAME); if (fullName != null) { names.setFullName(fullName); } jaxbInteractor.setNames(names); jaxbInteractor.setId(interactorId); interactorMap.put(interactor.getName(), interactorId); interactorId++; }