Update following changes to beast2 api and JDK version.