GENERATOR INTEGRATION IN AN ENERGY STORAGE SYSTEM