HONOLULU — A Hawaii judge sentenced a dog breeder to nine months in jail for torturing one of his animals.

The punishment issued Thursday stems from a May 2016 incident, when the Hawaiian Humane Society staff and animal investigators rescued 33 dogs from the property of 69-year-old James Montgomery in Kahaluu.

The animals were living in a bunker, and a dog named Cheddar was found emaciated inside a trash can, authorities said.

Montgomery pleaded no contest to first-degree animal cruelty in April in a deal to have 33 counts of misdemeanor animal cruelty dropped.

The nine-month jail term is part of a four-year probation sentence. The maximum sentence the judge could have imposed for the felony is five years.

Before being sentenced, Montgomery apologized to those gathered in court.

“I apologize to all of you who are members of the community who love animals,” he said. “I do too. It was my own responsibility and I am sorry for that.”

The severely malnourished dogs taken from the bunker were all adopted after receiving care from the humane society.