class MetadataQueryJsonService {

	public MetadataQuery metadataQueryFromJson(final String jsonString) throws MetadataQueryException {
		if (jsonString == null || jsonString.isEmpty()) {
			throw new IllegalArgumentException("null or empty jsonString");
		}

		try {
			return objectMapper.readValue(jsonString, MetadataQuery.class);
		} catch (IOException e) {
			log.error("exception reading JSON:{}", jsonString, e);
			throw new MetadataQueryException("exception reading json", e);
		}

	}

	public  MetadataQueryJsonService();

}