SPRINGFIELD -- A Holyoke man who was shot three times by a Springfield homeowner is too dangerous to be released before trial, a judge ruled Friday after a defense witness refused to testify at his bail hearing.

Emilio Garcia-Cappas, 21, will be held for the next 120 days at the Hampden County Correctional Center under an order issued by Judge William Hadley in Springfield District Court.

A co-defendant, Akeem Anderson, 21, of Springfield, was also ordered held without the right to bail.

The ruling came nine days after Garcia-Cappas was shot in an armed confrontation outside an Edgewood Street home in the city's Bay neighborhood, according to the arrest report.

He and Anderson allegedly knocked on the door and asked to see someone named Eric. After homeowner and his girlfriend told them twice that nobody by that named lived there, Garcia-Cappas allegedly drew a gun from his coat, according to the report.

The homeowner drew his own gun and fired seven shots, striking Garcia-Cappas three times. As he fled, Garcia-Cappas dropped a loaded 9-mm handgun on the lawn, police said. He was arrested later at Mercy Medical Center.

Anderson fled after the shooting and was arrested the next day.

Both men were held for a hearing Friday to determine if they posed too great a danger to the victims or the public to be released on bail.

During the session, Hadley heard presentations from Assistant District Attorney Colleen Monroe and lawyers for both defendants. He also reviewed a series of documents, including arrest reports, medical records and Anderson's probation record, court records show.

A witness called by the defense refused to testify, invoking his Fifth Amendment privilege against self-incrimination, the records show. The witness, identified as David Beadle, 21, of Springfield, allegedly drove the two men to the home, and drove Garcia-Cappas to the hospital after he was shot, according to the arrest report.

Following his arrest last year on robbery and assault charges, Beadle was identified in a police report as a "prolific offender and active Sycamore Gang member" with an extensive criminal record.

After hearing arguments from both sides, Hadley ruled the prosecution had met its burden of proof, and ordered both defendants held for 120 days; when the order expires, prosecutors can seek to extend it for another 120 days.

Both defendants are due back in court for a pretrial hearing March 9.