* @return The number of matches found
*/
private int calculateMatchScore(RequestQueue queue, Map<String,List<String>> metaData) {
int currentMatch = 0;
try {
DbProperties queueProps = queue.getProperties();
for (String name : metaData.keySet()) {
List<String> values = metaData.get(name);
String queueProp = queueProps.getProperty(name);
for (String value : values) {
if (queueProp != null && queueProp.equalsIgnoreCase(value)) {
currentMatch++;
break;
}