JAX-RS WS 2.0.1
Factor out vetor operation to common