Added better compatibility with the existing protobuf java api.. made implementing it's unit tests easier.