JDBC 4.5 introduces a JDBC escape to selectively disable escaping and parameter marker processing with the escape {\ ... \} (e.g. in a Java literal "... {\\ ... \\} ..."). For Jaybird we don't need to disable parameter marker processing, as that is done by the server (also, Firebird currently has no syntax with ? meaning anything other than parameters anyway).
We'll need to adjust JDBC escape processing to handle the {\ ... \} appropriately (i.e. unescape escaped \, and not do nested escape processing).