code: private static void navigateToPage(final RuleViolation violation) {
  		if (violation.getResourceType() == ResourceType.PARTY) {			
  			UI.getCurrent().getNavigator().navigateTo(UserViews.PARTY_VIEW_NAME + PAGE_SEPARATOR + violation.getId());
  		} else {
  			UI.getCurrent().getNavigator().navigateTo(UserViews.POLITICIAN_VIEW_NAME + PAGE_SEPARATOR + violation.getId());
  		}
  	}
docs: Navigate to page.
  
  @param violation
  the violation