class JiraSCMListener extends SCMListener {

    static String constructJQLQuery( Collection<String> issueKeys) {
        StringBuilder jql = new StringBuilder();
        jql.append("key in (");
        Iterator<String> iterator = issueKeys.iterator();
        while ( iterator.hasNext() ) {
            String key = iterator.next();
            jql.append("'");
            jql.append(key);
            jql.append("'");
            if (iterator.hasNext()) {
                jql.append(",");
            }
        }
        jql.append(")");
        return jql.toString();
    }

}