@Override
@SuppressWarnings("unchecked")
public Setting<HttpResponseSetting> apply(final MocoConfig config) {
RequestMatcher appliedMatcher = configItem(this.matcher, config);
if (config.isFor("uri") && this.matcher == appliedMatcher) {
appliedMatcher = new AndRequestMatcher(of(appliedMatcher, InternalApis.context((String) config.apply(""))));
}
HttpSetting setting = new HttpSetting(appliedMatcher);
setting.handler = configItem(this.handler, config);
setting.eventTriggers = configItems(eventTriggers, config);