* @return the SUCCESS result
*/
public String unselect() throws ServiceException {
Account account = null;
Contact contact = null;
Opportunity opportunity = null;
CaseInstance caseInstance = null;
Set<Document> documents = null;
if ("Account".equals(this.getRelationKey())) {
account = accountService.getEntityById(Account.class,
Integer.valueOf(this.getRelationValue()));
documents = account.getDocuments();
} else if ("Contact".equals(this.getRelationKey())) {
contact = contactService.getEntityById(Contact.class,
Integer.valueOf(this.getRelationValue()));
documents = contact.getDocuments();
} else if ("Opportunity".equals(this.getRelationKey())) {
opportunity = opportunityService.getEntityById(Opportunity.class,
Integer.valueOf(this.getRelationValue()));
documents = opportunity.getDocuments();
} else if ("CaseInstance".equals(this.getRelationKey())) {
caseInstance = caseService.getEntityById(CaseInstance.class,
Integer.valueOf(this.getRelationValue()));
documents = caseInstance.getDocuments();
}