move NextPid JAX-B resource into legacy api