WEST BATH, Maine — Longtime assistant district attorney Jonathan Liberman was sworn in Friday as district attorney for the prosecutorial district that includes Sagadahoc, Lincoln, Knox and Waldo counties.

Liberman of Bath replaces Geoffrey Rushlau of Dresden, who was nominated by Gov. Paul LePage to a district court judgeship in March, and has since been confirmed by the Maine Senate.

Liberman, who was recommended by Maine Republican Party caucuses in the four counties, had served as deputy district attorney under Rushlau since July 2016.

After Liberman was sworn in by West Bath District Court clerk Anita Alexander, he said said “filling Geoff Rushlau’s shoes is going to be difficult,” but that he is optimistic.

“One of the things about working as a prosecutor, like life in general, is that everything is a team effort,” Liberman told those gathered, including his family, most of the district’s assistant district attorneys and the entire staff of the Sagadahoc County District Attorney’s office. “When it comes to bringing a case as a prosecutor, you depend on law enforcement, staff and the great work of the assistant district attorneys.”

Rushlau’s term expires in 2018, so if Liberman wants to continue serving as district attorney, he will have to run for the position next year.