Moving them to Java code would remove the need for call ```res.getInteger()```.