Martin McCaffrey was found to have discriminated against Emma Hughes on grounds of her gender relating to her pregnancy and maternity leave status.