The invention comprises three parts: The first parts provides a miniaturized functional optical module, which is provided with a lens-exchange type collimator enabling rapid and easy exchange of an optical functional component andor lenses and being compact in size and excellent in durability. The control electronics comprise a microcontroller and a switch for interrupting the current flowing through the gas-generating cell. The method identifies a change from the original design layout to the modified design layout by comparing the original and modified design layouts. Further, each remediation technique has a remediation type are selected from the type group consisting of patch, policy setting, and configuration option. The resin-molded device includes a resin package of electrically insulating material molded so as to hold together the plurality of the electronic elements, the lead members, and the metal blocks.