[JBMAR-169] : Jdk8 serial marshalling fix

SerialMarshaller fix provided in order to run with jdk8.