When a person is convicted of an offense defined in section 145.22 or 145.23 of this chapter or of an attempt to commit such an offense, and the sentence imposed by the court for such conviction includes a sentence of probation or conditional discharge, such sentence shall, where appropriate, be in accordance with paragraph (h) of subdivision two of section 65.10 of this article as such section relates to cemetery crime.
N.Y. Penal Law § 60.29