fixing nullpointer exception
Introduced getEnergyAware methods