Is this the correct way to check parameters in REST web service?
public String getMessage(@PathParam("word") String word, @PathParam("langu