change netty from 4 to 5 ,update class method