@Serial
	private Object writeReplace() {
		return new SerialProxy(SerialProxy.TRS_KEY, this);
	}
Create a new TRS from the given rewrite rules.

@param rules the rewrite rules
@return a new TRS
@throws NullPointerException if one of the arguments is {@code null}
@throws IllegalArgumentException if the given {@code rules} sequence is
        empty
jenetics.ext/src/main/java/io/jenetics/ext/rewriting/TRS.java