Made java protobuf working