ISPN-5068 Make protostream jdk 6 compatible