Borowy was hit in the back. School employees restrained Gladden before he could shoot anyone else.
Gary Gephardt, a school resource officer who went to the cafeteria after hearing what sounded to him like firecrackers, handcuffed and searched Gladden. Gephardt testified that Gladden asked him, "Can I get the death penalty for this? Because I wanted to kill him."
Gephardt said he found shotgun shells in Gladden's pockets, along with a suicide note in which Gladden thanked his father for leaving the gun accessible and said he had nothing to tell his mother.
At the hearing earlier this month, Gladden expressed remorse for injuring Borowy and said he wanted to meet him or write a letter of apology.
"I'm here today because I made the stupidest, dumbest decision," Gladden read from a statement. "I've caused enough pain and hurt. I know I can do so much better."
Psoras argued during the hearing that Gladden was not a dangerous criminal but a disturbed teen in need of psychiatric treatment. Gladden had shown remorse after being prescribed Prozac at the Baltimore County Detention Center, Psoras said, which demonstrated that he could respond to treatment.
But prosecutors argued that Gladden was not remorseful. They played recordings of conversations at the Baltimore County Detention Center between Gladden and family members. In one, Gladden said, "You know what school I wish I went to? Sandy Hook Elementary." A gunman killed 20 children and six staff members at the school in Newtown, Conn., in December.
Prosecutors also played recorded conversations in which he denied ever having been bullied and spoke of how he liked being an outcast.
"They keep saying that I was bullied," he told his father. "It makes me mad. I wasn't bullied at all."
Prosecutors referred to reports from staff at Spring Grove Hospital, where Gladden was evaluated after his arrest, that he initiated fistfights with a 12-year-old in the boys bathroom, cracked his knuckles while standing over a group leader in an attempt to intimidate and made persistent threats to a patient who had to be placed in protection.
Several mental health professionals and a social worker testified that Gladden needs psychiatric treatment. They said he has been troubled since a very young age, with thoughts of suicide when he was in elementary school, which were heightened during his parents' divorce and when close relatives killed themselves.
Gladden struggled with schoolwork and was suspended numerous times. He was transferred to an alternative school when in seventh grade after he brought oregano to school and pretended it was marijuana.
After performing well at the alternative school, Gladden was allowed to attend Perry Hall. But his grades deteriorated, and he was suspended for writing threats to a schoolmate on Facebook.
Gladden had no criminal record before the shooting.
The Perry Hall shooting and other incidents led Baltimore County officials to appoint an administrative security officer for the school system and to give metal-detection wands to school resource officers. County and school officials recently announced an added $3.7 million for security improvements.