Serialize complex object graphs with Java-API (where classes must don't implement the interface java.io.Serializable).