Where a person is convicted on indictment of assault occasioning actual bodily harm, other than an offence for which the sentence falls to be imposed under section 227 or 228 of the Criminal Justice Act 2003, the court, if not precluded from sentencing an offender by its exercise of some other power, may impose a fine instead of or in addition to dealing with him in any other way in which the court has power to deal with him, subject however to any enactment requiring the offender to be dealt with in a particular way.