public RelationshipService getRelationshipService() throws ClientException {
if (null == relationshipService) {
try {
relationshipService = Framework.getService(RelationshipService.class);
} catch (Exception e) {
throw new ClientException(
"Error while trying to acquire RelationshipService", e);
}
if (null == relationshipService) {
throw new ClientException("RelationshipService not bound");
}
}
return relationshipService;
}