Former adviser found guilty of 17 federal charges, gets maximum sentence