Made serialisation java types pass the model loader