Add backwards compat shims in case Java code is calling these methods