O’Connell can be identified in reporting, but the girl wishes to retain her right to anonymity, the court heard