Migrate to javaconfig.