Add custom java class and use it in rules

I want to parse json with Gson library in a rule and it would be very convenient to create a custom class since gson can automatically fill it in. Is it possible to add custom POJO classes and use them in rules ?

I don’t believe this is possible.