Nothing in this chapter shall be construed as affecting the authority of the courts to make commitments as otherwise provided by law.