openfire is coded by JAVA ,openwater is coded by C++