class PatternUtils {

    public static String literalMatchGroup(Collection<String> strings)
    {
        Assert.notEmpty(strings, "Collection of strings argument cannot be empty or null");
        StringBuffer buff = new StringBuffer("(");
        for (String s : strings)
        {
            buff.append(s);
            buff.append("|");
        }
        buff.deleteCharAt(buff.lastIndexOf("|"));
        buff.append(")");
        return buff.toString();
    }

}