class BpmnInstaller {

    public boolean containsWorkflows(String csarFilePath) {
        try (ZipFile zipFile = new ZipFile(csarFilePath)) {
            Enumeration<? extends ZipEntry> zipEntries = zipFile.entries();
            while (zipEntries.hasMoreElements()) {
                String fileName = zipEntries.nextElement().getName();
                if (fileName.endsWith(BPMN_SUFFIX)) {
                    return true;
                }
            }
        } catch (Exception e) {
            logger.debug("Exception :", e);
            logger.error(LoggingAnchor.FIVE, MessageEnum.ASDC_ARTIFACT_CHECK_EXC.toString(), csarFilePath,
                    e.getMessage(), ErrorCode.DataError.getValue(), "ASDC Unable to check CSAR entries");
        }
        return false;
    }

}