@GET
@Path("/make")
public Vehicle persist(@QueryParam("id") Long id,
@QueryParam("make") String make, @QueryParam("model") String model, @QueryParam("color") String color) {
Vehicle car = new Vehicle(id, make, model, color);
em.getTransaction().begin();
em.persist(car);
em.getTransaction().commit();
return car;
}