Levesque was most recently sentenced in July for the theft of a woman’s purse from her car while she was getting gas.
Prosecutors believe that Levesque put Dew up to two holdups in 2010, at Tedeschi’s on Cabot Street and at Century Bank on Rantoul Street.
Levesque has not been charged in connection with Wednesday’s incident.
Trautman told the judge that police spoke to people in the Rantoul Street apartment who said they had seen Dew playing with a knife earlier.
They later compared the footprints at the scene to Dew’s sneakers.
Courts reporter Julie Manganis can be reached at 978-338-2521, via email at firstname.lastname@example.org or on Twitter @SNJulieManganis.