Foam complicates the design and reduces the reliability of the automatic sprinkler system. Second, foam must be listed for a specific hazard so you must select the correct foam for the stored hazard. You should seek the assistance of a Registered Professional Engineer licensed to practice Fire Protection Engineering.