BROOKSVILLE — A 22-year-old Spring Hill man was sentenced Monday to 10 years in state prison for his role in a robbery and beating in Brooksville last year. Shane Jordan Rawlins accepted a deal from prosecutors to plead guilty to principal to robbery with a firearm, aggravated battery with a deadly weapon and being a felon in possession of a firearm. Authorities say Rawlins broke into an apartment at Brookhaven Apartments in April 2012 and pistol whipped Tavin Howard as he lay sleeping in bed. Detectives say Rawlins and a co-defendant, 21-year-old Shayne Gracterloy, then stole $1,000 in cash, an Xbox game console, a laptop computer and some marijuana. Rawlins' trial was slated to begin Monday. If convicted, he faced a mandatory life sentence because he committed the crime one year after being released from prison for a previous robbery conviction, said Assistant State Attorney Rob Lewis. Gracteroly pleaded no contest in May to robbery with a deadly weapon and was sentenced to three and a half years in prison. Howard suffered a fractured skull and has recovered, Lewis said.