public void contributeService( DeploymentContext context, Service service ) throws Exception {
String packages = StringUtils.join( getPackages(), ";" );
for( String pattern : getPatterns() ) {
ResourceDescriptor resource = context.getGatewayDescriptor().addResource();
resource.role( service.getRole() );
resource.pattern( pattern );
addAuthenticationFilter( context, service, resource );
addIdentityAssertionFilter( context, service, resource );
addAuthorizationFilter( context, service, resource );
// addRewriteFilter( context, service, resource, null );
List<FilterParamDescriptor> params = new ArrayList<FilterParamDescriptor>();