Use getInstanceAuto instead of getInstanceWithCodeIndexAndInfo