class DynamoDBStatusCheckerFactory implements StatusCheckerFactory {

    @Override
    public StatusChecker create() {
        final String tableName = System.getProperty(ZTSConsts.ZTS_PROP_CERT_DYNAMODB_TABLE_NAME);
        if (tableName == null || tableName.isEmpty()) {
            LOGGER.error("Cert Store DynamoDB table name not specified");
            throw new ResourceException(ResourceException.SERVICE_UNAVAILABLE, "DynamoDB table name not specified");
        }
        return new DynamoDBStatusChecker(tableName, keyStore);
    }

}