I just fixed one that someone had thrown away. Mine's an anchor light -- and the plastic that holds the base (ground wire) had cracked. I've not yet glued it in -- it's seated okay until the boat moves when vibration will make it wobble.
This is the guts:
What glue would you use to make it permanent? These doggone things are $140 new (crazy) and I have no idea what I'm going to do with it. I haven't yet soldered the wires -- just placed them and tested.
First I tried a LED I had -- not bright enough. So I put back the piece that had broken and temporarily attached wires. It works -- I think the base was loose so the owner just opted to buy a new one.
Here it is all put together: