A federal judge on Tuesday recommended the release of a man who remains in prison nearly two years after his acquittal on murder charges in the 2007 death of a police officer he shot decades earlier.

In a report recommending the immediate release of William Barnes, U.S. Magistrate Timothy Rice said that Barnes had endured "a shocking pattern of arbitrary and irrational expectations, requirements, and parole denials."

Rice's report and recommendation now goes to U.S. District Judge James Knoll Gardner in Allentown, who will rule on Barnes' release.

Barnes, 76, has been incarcerated since the August 2007 death of former Philadelphia Police Officer Walter Barclay, whom Barnes shot and paralyzed in 1966 during a botched burglary.

Barnes had served 16 years for shooting Barclay but was charged with murder after the officer died at age 64. Prosecutors said Barnes' actions caused Barclay to suffer decades of infections, bedsores, and other ailments that ultimately caused his death.

Though a jury acquitted Barnes in May 2010, he remained in prison for having a cellphone and driving a car without his parole officer's approval at the time of his 2007 arrest. He was given six months for those violations but has been repeatedly denied parole for a variety of reasons ever since.

Barnes' attorneys said at a hearing before Rice last week that Barnes' continued imprisonment was a vindictive effort by authorities to have him die in prison and a violation of his constitutional right to due process.

"Judge Rice obviously did a very thorough analysis of the record," defense attorney Sam Silver said. "The result is very gratifying."

Prosecutors have two weeks to file objections to the report.