@Override public Response toResponse(final InvalidPrefixException e) { LOGGER.error("FedoraInvalidPrefixExceptionMapper caught an exception: {}", e.getMessage()); debugException(this, e, LOGGER); return status(BAD_REQUEST).entity(e.getMessage()).type(TEXT_PLAIN_WITH_CHARSET).build(); }
throw new InvalidPrefixException("Prefix already exists as: " + k + " -> " + namespaceURI);