if (line.hasOption(RDAPOptions.RAW)) {
ObjectMapper mapper = new ObjectMapper();
System.out.println(mapper.writer().writeValueAsString(rdapClient.getDomainAsJson(query)));
} else if (line.hasOption(RDAPOptions.PRETTY)) {
ObjectMapper mapper = new ObjectMapper();
System.out.println(mapper.writer(new DefaultPrettyPrinter()).writeValueAsString(rdapClient.getDomainAsJson(query)));
}
} catch (UnrecoverableKeyException e) {
LOGGER.error(e.getMessage(), e);
} catch (NoSuchAlgorithmException e) {
LOGGER.error(e.getMessage(), e);