@Produces(MediaType.TEXT_PLAIN)
public Response getSimpleMetadataField(@PathParam("field") String field, InputStream is) throws Exception {
// use BAD request to indicate that we may not have had enough data to
// process the request
Status defaultErrorResponse = Status.BAD_REQUEST;
try {
parser.parse(is, new DefaultHandler(), metadata);
// once we've parsed the document successfully, we should use NOT_FOUND
// if we did not see the field
defaultErrorResponse = Status.NOT_FOUND;