class AuditDataService {

    public Optional<AAIObjectAuditList> getStackDataFromRequestDb(AuditInventory auditInventory) throws IOException {

        List<RequestProcessingData> requestProcessingDataList =
                requestsDbClient.getRequestProcessingDataByGroupingIdAndNameAndTag(auditInventory.getVfModuleId(),
                        auditInventory.getHeatStackName(), AUDIT_STACK_DATA);
        if (!requestProcessingDataList.isEmpty()) {
            RequestProcessingData requestProcessingData = requestProcessingDataList.get(0);
            String auditListString = requestProcessingData.getValue();

            GraphInventoryCommonObjectMapperProvider objectMapper = new GraphInventoryCommonObjectMapperProvider();
            AAIObjectAuditList auditList =
                    objectMapper.getMapper().readValue(auditListString, AAIObjectAuditList.class);

            return Optional.of(auditList);
        } else {
            return Optional.empty();
        }
    }

}