(Bloomberg) -- Siemens Energy AG has obtained a €4 billion ($4.3 billion) credit line that replaces an existing facility of its own as well as for its loss-making Gamesa wind-turbine unit. The new five-year revolving facility refinances an existing €3 billion credit line for Siemens Energy and a €2 billion one for Siemens Gamesa Renewable Energy SA, a company spokesperson told Bloomberg. A consortium of 26 international banks committed to the new debt, he said. The financing, which is tied to the company's sustainability performance, can be extended twice by one year. This structure is in line with typical revolving facilities for investment-grade firms, serving as a primary backup source of liquidity for general corporate purposes and refinancing. The deal came into effect on Wednesday, just two days after Siemens Energy had its annual general meeting, where its management pledged to focus on turning around the wind business after facing pressure from shareholders.