private RelationshipService getRelationshipService() {
if (relationshipService == null) {
try {
relationshipService = Framework.getService(RelationshipService.class);
} catch (Exception e) {
throw new ClientRuntimeException(e);
}
}
if (relationshipService == null) {
throw new ClientRuntimeException(
"RelationshipService is not registered.");
}
return relationshipService;
}