Fix for the COLA SWIG bindings for Java.