Transforming legacy energy management system (EMS) modules into reusable components: a case study | IEEE Conference Publication | IEEE Xplore