Division 3 of Part 8.2 of the Criminal Procedure Act 2009 contains the "protected witness" provisions from the former Evidence Act 1958 s37CA.
While the provisions have undergone minor drafting amendments, their substance remains unchanged.
Who is a "Protected Witness"?
The "protected witness" provisions of the Criminal Procedure Act 2009 apply to proceedings that relate (wholly or partly) to a charge for:
A "sexual offence";  or
An offence where the conduct constituting the offence consists of "family violence" within the meaning of the Family Violence Protection Act 2008 (Criminal Procedure Act 2009 s353). 
In such proceedings, the following people are "protected witnesses":
A family member  of either the complainant or the accused; or
Any other witness whom the court declares under s355 to be a protected witness (Criminal Procedure Act 2009 s354).
Cross-Examination of Protected Witnesses
A protected witness must not be personally cross-examined by the accused (Criminal Procedure Act 2009 s356).
Where a protected witness gives evidence, and the accused is not legally represented, the court must inform the jury that the accused is not permitted to personally cross-examine the witness (Criminal Procedure Act 2009 s357(1)(a)).
If an unrepresented accused obtains, or is provided with, legal representation for the purpose of cross-examining a protected witness, the judge must warn the jury:
That this is routine practice;
That no adverse inference may be drawn against the accused as a result of the cross-examination not being conducted by the accused in person; and
That the evidence given under cross-examination is not to be given any greater or lesser weight as a result of the cross-examination not being conducted by the accused personally (Criminal Procedure Act 2009 s358).
These directions under sections 357 or 358 do not depend on a party making a request (compare Jury Directions Act 2015 Part 3).
As a matter of prudence, the accused should not be offered representation in the presence of the jury. Such matters should be resolved prior to the commencement of the trial.
 See Criminal Procedure Act 2009 s354 for the definition of a "family member" in this context. This definition differs from the definition of "family member" used in relation to the family violence provisions of the Family Violence Protection Act 2008.