// Add the matching keys to the match collection
List<?> keys = getSubscriptionMatches(apiSubscription.getSubscriptionFilter(), em);
if (keys != null && keys.size() > 0) {
for (Object key : keys) {
SubscriptionMatch subMatch = new SubscriptionMatch(modelSubscription, (String)key);
modelSubscription.getSubscriptionMatches().add(subMatch);
}
}
em.persist(modelSubscription);