question: public static void createClientCache ( String host , Integer port , String name ) throws Exception { ClientInterestNotifyDUnitTest test = new ClientInterestNotifyDUnitTest ( ) ; Cache cacheClient = test . createCache ( createProperties1 ( ) ) ; AttributesFactory factory = new AttributesFactory ( ) ; factory . setScope ( Scope . LOCAL ) ; factory . setConcurrencyChecksEnabled ( false ) ; createPool2 ( host , factory , port ) ; factory . setCacheListener ( test . new EventListener ( name + REGION_NAME1 ) ) ; RegionAttributes attrs = factory . create ( ) ; cacheClient . createRegion ( REGION_NAME1 , attrs ) ; factory = new AttributesFactory ( ) ; factory . setScope ( Scope . LOCAL ) ; factory . setConcurrencyChecksEnabled ( false ) ; createPool2 ( host , factory , port ) ; factory . setCacheListener ( test . new EventListener ( name + REGION_NAME2 ) ) ; attrs = factory . create ( ) ; cacheClient . createRegion ( REGION_NAME2 , attrs ) ; factory = new AttributesFactory ( ) ; factory . setScope ( Scope . LOCAL ) ; factory . setConcurrencyChecksEnabled ( false ) ; createPool2 ( host , factory , port ) ; factory . setCacheListener ( test . new EventListener ( name + REGION_NAME3 ) ) ; attrs = factory . create ( ) ; cacheClient . createRegion ( REGION_NAME3 , attrs ) ; }
target:  create client with 3 regions each with a unique listener