CROWN POINT — A 56-year-old former Illinois police officer pleaded guilty Tuesday to battery on a child under 14, a class D felony, resolving a 2009 child molestation case from East Chicago.

James E. McGee, of Yorkville, Illinois, is expected to be sentenced to three years in prison as part of his plea agreement, which was submitted in Lake Criminal Court before Judge Salvador Vasquez.

McGee, a former police officer for Robbins Police Department in Illinois, was convicted in March 2010 of three counts of child molestation on allegations he repeatedly sexually abused a girl from the ages of 9 to 15 in East Chicago.

He was sentenced to 40 years prison, but the conviction was overturned by the Indiana Court of Appeals in July 2015 after the court determined McGee was denied the effective assistance of counsel at trial.

The court ruled McGee's attorney, John Cantrell, failed to sufficiently challenge the victim's credibility by presenting evidence at trial of her mental health issues.

McGee admitted as part of the plea agreement Tuesday he touched the girl in a rude or insolent manner, which caused the girl bodily injury.

Deputy Prosecutor Keith Anderson told the court the victim's family approved of the plea agreement.

A sentencing hearing is scheduled for March 27.

Gallery: Recent arrests booked into Lake County Jail