Refactor out duplication when reading single values  in JXPathContextCutlet.java