you should guard this by a if (in.getVersion().onOrAfter(Version.V_1_1_0))