private void contributeResources( DeploymentContext context, Service service ) throws URISyntaxException {
List<FilterParamDescriptor> params;
ResourceDescriptor rootResource = context.getGatewayDescriptor().addResource();
rootResource.role( service.getRole() );
rootResource.pattern( EXTERNAL_PATH + "/?**" );
addWebAppSecFilters(context, service, rootResource);
addAuthenticationFilter( context, service, rootResource );
params = new ArrayList<FilterParamDescriptor>();
params.add( rootResource.createFilterParam().name( "response.headers" ).value( getQualifiedName() + "/headers/outbound" ) );
addRewriteFilter( context, service, rootResource, params );