Putting the bakery goods and coffee grounds through a biorefining process would also have the added benefit of keeping a lot of waste out of the waste stream while also reducing pollution from incineration.
FORBES: Starbucks To Turn Stale Pastries Into Plastic?