You might be able to glue it to a board.
Pitch, which is a jeweler's holding medium may work. ANy heat, tho, it softens and will release the spring. There is also Dopping Wax, which I think is used to hold gemstones for grinding.
Martin, sometimes you can leave the spring long, and clamp on the ends where you will later cut them off. Like, screw it to a board, and your good part is in between the hold down screws.
Tom