SPRINGFIELD, Mass. (AP) — A Springfield man has been charged with impersonating a U.S. marshal in an attempt to spring a friend from jail.

Prosecutors say 49-year-old Dennis Wilhite appeared in federal court on Wednesday to face the charge.

Authorities say between Oct. 28 and Monday when he was arrested Wilhite called Revere police, claimed he was deputy U.S. Marshal, and asked that friend jailed on a larceny charge be freed because she was assisting in a sex trafficking case that involved children.

Wilhite is also alleged to have posed as a U.S. Marshal in calls made to a victim in a state criminal case filed against Wilhite's friend.

If convicted, he faces up to three years in prison.