public void validateCriteriaAndAddStrategy(final IBaseResource theResource) {
		String criteria = mySubscriptionCanonicalizer.getCriteria(theResource);
		try {
			SubscriptionMatchingStrategy strategy = mySubscriptionStrategyEvaluator.determineStrategy(criteria);
			mySubscriptionCanonicalizer.setMatchingStrategyTag(theResource, strategy);
		} catch (InvalidRequestException | DataFormatException e) {
			throw new UnprocessableEntityException("Invalid subscription criteria submitted: " + criteria + " " + e.getMessage());
		}
	}
public void validateCriteriaAndAddStrategy ( final IBaseResource theResource ) { String criteria = mySubscriptionCanonicalizer . getCriteria ( theResource ) ; try { SubscriptionMatchingStrategy strategy = mySubscriptionStrategyEvaluator . determineStrategy ( criteria ) ; mySubscriptionCanonicalizer . setMatchingStrategyTag ( theResource , strategy ) ; } catch ( InvalidRequestException | DataFormatException e ) { throw new UnprocessableEntityException ( "Invalid subscription criteria submitted: " + criteria + " " + e . getMessage ( ) ) ; } }
TODO KHS add third type of strategy DISABLED if that subscription type is disabled on this server