China to endorse South China Sea code of conduct