Buggy code:
public class RestBean implements ClusterInfoAware , ServiceDetailsProvider , ServiceMonitorsProvider , DisposableBean , InitializingBean { protected Log logger = LogFactory . getLog ( getClass ( ) ) ; private Server server ; private GigaSpace gigaspace ; private String spaceName ; private String groups ; private String locators ; private String port ; int jettyPort ; private FilterHolder filterHolder ; private ClusterInfo clusterInfo ; private WebAppContext webAppContext ; private boolean jettyStarted = false ; private Properties properties ; @ Override public void destroy ( ) { } public void setPort ( String port ) { } public void setGigaSpace ( GigaSpace gigaSpace ) { } public void setSpaceName ( String spaceName ) { } public void setGroups ( String groups ) { } public void setLocators ( String locators ) { } public void setProperties ( Properties properties ) { } @ Override public void afterPropertiesSet ( ) throws Exception { int runningNumber = clusterInfo . getRunningNumber ( ) ; try { jettyPort = Integer . valueOf ( this . port ) ; } catch ( NumberFormatException e ) { throw new CannotCreateContainerException ( "Port<seq2seq4repair_space>should<seq2seq4repair_space>be<seq2seq4repair_space>number" ) ; } jettyPort += runningNumber ; server = new Server ( ) ; server . setStopAtShutdown ( true ) ; server . setGracefulShutdown ( 1000 ) ; SelectChannelConnector connector = new SelectChannelConnector ( ) ; connector . setPort ( jettyPort ) ; server . setConnectors ( new Connector [ ] { connector } ) ; String ispaceName ; String igroups ; String ilocators ; if ( ( ( gigaspace ) == null ) && ( ( spaceName ) == null ) ) { throw new CannotCreateContainerException ( "Either<seq2seq4repair_space>giga-space<seq2seq4repair_space>or<seq2seq4repair_space>space-name<seq2seq4repair_space>attribute<seq2seq4repair_space>should<seq2seq4repair_space>be<seq2seq4repair_space>specified." ) ; } if ( ( ( gigaspace ) != null ) && ( ( spaceName ) != null ) ) { throw new CannotCreateContainerException ( "Either<seq2seq4repair_space>giga-space<seq2seq4repair_space>or<seq2seq4repair_space>space-name<seq2seq4repair_space>attribute<seq2seq4repair_space>can<seq2seq4repair_space>be<seq2seq4repair_space>specified<seq2seq4repair_space>but<seq2seq4repair_space>not<seq2seq4repair_space>both." ) ; } if ( ( spaceName ) != null ) { ispaceName = spaceName ; igroups = ( ( groups ) == null ) ? null : groups ; ilocators = ( ( locators ) == null ) ? null : locators ; } else { IJSpace space = gigaspace . getSpace ( ) ; ispaceName = space . getName ( ) ; String [ ] lookupgroups = space . getFinderURL ( ) . getLookupGroups ( ) ; if ( ( lookupgroups == null ) || ( ( lookupgroups . length ) == 0 ) ) { igroups = null ; } else { igroups = StringUtils . join ( lookupgroups , "," , 0 , lookupgroups . length ) ; } LookupLocator [ ] lookuplocators = space . getFinderURL ( ) . getLookupLocators ( ) ; if ( ( lookuplocators == null ) || ( ( lookuplocators . length ) == 0 ) ) { ilocators = null ; } else { ilocators = "" ; for ( int i = 0 ; i < ( lookuplocators . length ) ; i ++ ) { ilocators += ( ( lookuplocators [ i ] . getHost ( ) ) + ":" ) + ( lookuplocators [ i ] . getPort ( ) ) ; if ( i != ( ( lookuplocators . length ) - 1 ) ) { ilocators += "," ; } } } } logger . info ( ( ( "Starting<seq2seq4repair_space>REST<seq2seq4repair_space>service<seq2seq4repair_space>on<seq2seq4repair_space>port<seq2seq4repair_space>[" + ( jettyPort ) ) + "]" ) ) ; webAppContext = new WebAppContext ( ) ; filterHolder = new FilterHolder ( RequestStatisticsFilter . class ) ; <START_BUG> webAppContext . addFilter ( filterHolder , "//" , EnumSet . of ( INCLUDE , REQUEST ) ) ; <END_BUG> webAppContext . setContextPath ( "//" ) ; webAppContext . setWar ( ( ( Environment . getHomeDirectory ( ) ) + "//lib//platform//rest//RESTData.war" ) ) ; webAppContext . setInitParameter ( "port" , port ) ; webAppContext . setInitParameter ( "spaceName" , ispaceName ) ; if ( ( igroups != null ) && ( ! ( igroups . equalsIgnoreCase ( "null" ) ) ) ) { logger . debug ( ( "Applying<seq2seq4repair_space>groups<seq2seq4repair_space>" + igroups ) ) ; webAppContext . setInitParameter ( "lookupGroups" , igroups ) ; } if ( ( ilocators != null ) && ( ! ( ilocators . equalsIgnoreCase ( "null" ) ) ) ) { logger . debug ( ( "Applying<seq2seq4repair_space>locators<seq2seq4repair_space>" + ilocators ) ) ; webAppContext . setInitParameter ( "lookupLocators" , ilocators ) ; } if ( ( ( properties ) != null ) && ( ( properties . getProperty ( "datetime_format" ) ) != null ) ) { webAppContext . setInitParameter ( "datetime_format" , properties . getProperty ( "datetime_format" ) ) ; } server . setHandler ( webAppContext ) ; try { server . start ( ) ; jettyStarted = true ; logger . info ( "REST<seq2seq4repair_space>service<seq2seq4repair_space>is<seq2seq4repair_space>started" ) ; } catch ( Exception e ) { logger . error ( ( ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>start<seq2seq4repair_space>rest<seq2seq4repair_space>service<seq2seq4repair_space>on<seq2seq4repair_space>port<seq2seq4repair_space>[" + ( jettyPort ) ) + "]" ) , e ) ; throw new CannotCreateContainerException ( ( ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>start<seq2seq4repair_space>rest<seq2seq4repair_space>server<seq2seq4repair_space>on<seq2seq4repair_space>port<seq2seq4repair_space>[" + ( jettyPort ) ) + "]" ) , e ) ; } } @ Override public ServiceDetails [ ] getServicesDetails ( ) { } @ Override public ServiceMonitors [ ] getServicesMonitors ( ) { } @ Override public void setClusterInfo ( ClusterInfo clusterInfo ) { } }

Fix:
webAppContext . addFilter ( filterHolder , "//*" , EnumSet . of ( INCLUDE , REQUEST ) ) ;