class FossologyUploader {

    protected FossologyStatus parseResultStatus(String output) {
        final Pattern pattern = Pattern.compile("status=(\\w*)");
        final Matcher matcher = pattern.matcher(output);
        if (matcher.find()) {
            try {
                return FossologyStatus.valueOf(matcher.group(1));
            } catch (Exception e) {
                log.error("fossology output parser caught exception: " + e.getMessage(), e);
            }
        }
        log.error("cannot parse output from fossology check status: '" + output + "'");
        return FossologyStatus.CONNECTION_FAILED;
    }

    @Autowired public  FossologyUploader(FossologySshConnector fossologySshConnector);

}