class HeatStackAudit {

    protected Optional<String> extractResourcePathFromHref(String href) {
        try {
            Optional<String> stackPath = extractStackPathFromHref(href);
            if (stackPath.isPresent()) {
                return Optional.of(stackPath.get() + RESOURCES);
            } else
                return Optional.empty();
        } catch (Exception e) {
            logger.error("Error parsing URI", e);
        }
        return Optional.empty();
    }

}