The Important Role of Energy Codes in Achieving Resilience