PORTLAND, Maine — The New Hampshire woman who admitted driving a stolen getaway car for her boyfriend after he robbed a York bank last year has been sentenced to 22 months in federal prison.

Christie R. Hendrix, 34 of Manchester, N.H., also was sentenced Wednesday in U.S. District Court to three years of supervised release after completing her prison term.

Hendrix waived indictment in March and pleaded guilty to aiding and abetting bank robbery on Nov. 23, 2011.

She was with Bernie Subocz, 44, of Manchester, N.H., when he robbed the Savings Bank of Maine branch on U.S. Route 1 in York, according to the prosecution version of events to which Hendrix pleaded guilty. She said that Subocz drove to the bank from Manchester, N.H., in a Toyota Avalon sedan he had stolen the previous day from the lot of AMZ Auto in Manchester. He also stole a Massachusetts license plate and put it on the stolen car.

By pleading guilty, Hendrix also admitted that she was with Subocz when he purchased a knit cap from a Dollar Tree Store in Manchester and cut holes in it for the eyes. He used the knit cap and a hooded sweatshirt in an attempt to hide his identity from bank tellers and surveillance cameras, according to the prosecution version of events.

Investigators located Hendrix in January, according to court documents. She told police that she had met Subocz at a party in 2011 and they became boyfriend and girlfriend.

Hendrix was repeatedly beaten by Subocz, including on the day of the robbery, according to the sentencing memorandum filed by her attorney, Federal Public Defender David Beneman. She also was addicted to drugs at the time of the robbery, he wrote.

Subocz has been indicted by a federal grand jury for the bank robbery in York, a bank robbery on Nov. 19 in Wells, interstate transportation of a stolen motor vehicle and interstate transportation of stolen money.

His arraignment date has not been set.

Subocz is being held without bail.

Hendrix was not charged in connection with the robbery of the Bank of America branch in Wells in which $4,228 was taken, according to court documents.

In addition to prison time, U.S. District Judge Nancy Torresen ordered that Hendrix pay $10,865 in restitution. If Subocz were to be convicted of the York robbery, he most likely would be ordered to pay half of the restitution Hendrix was ordered to pay.