Duplicated swig directives to handle AS3(CB) specific features without breaking java version