2. Community confinement generally should not be imposed for a period in excess of six months. A longer period may be imposed to accomplish the objectives of a specific rehabilitative program, such as drug rehabilitation. The sentencing judge may impose other discretionary conditions of probation or supervised release appropriate to effectuate community confinement.