Foster was sworn in as president of the Mechanical Contractors Association of America.