public static JobQueueMatch getMatch(Collection<JobQueueMatch> matches,
                                         String submissionLocation) {

        if (matches == null) {
            return null;
        }

        for (JobQueueMatch m : matches) {
            if (m.getQueue().toString().equals(submissionLocation)) {
                return m;
            }
        }

        for (JobQueueMatch m : matches) {
            DtoProperties options = m.getQueue().getOptions();
            if (options != null && options.size() > 0 && StringUtils.isNotBlank((String) options.get("alias"))) {
                Iterator<String> aliases = Splitter.on(",").split((String)(options.get("alias"))).iterator();
                while ( aliases.hasNext() ) {
                    if ( aliases.next().equals(submissionLocation)) {
                        return m;
                    }
                }

            }
        }
        return null;
    }