many thx for your comments.
It seems to be its currently not possible to store generated bytecode. Right?
More often than not setup of an transformer needs more time as the transformation (in my scenario). So I try to deploy a compiled stylesheed into my app-server. It is possible?
The same question was asked by someone else in an off-list message
to Saxonica yesterday.
The PreparedStylesheet object was Serializable until Saxon 9.3,
provided that you steered clear of facilities that weren't
serializable, for example anything that required a RuleBasedCollator
(a JDK class that for some reason isn't serializable). But the
facility had so many restrictions, and caused so many problems, and
so many disappointments, that we pulled it in 9.4, at the same time
as we introduced bytecode generation.