* @return null if none is created.
*/
private UDPDiscoveryService createDiscoveryService( ITCPLateralCacheAttributes lac, LateralCacheNoWaitFacade lcnwf,
ICompositeCacheManager cacheMgr )
{
UDPDiscoveryService discovery = null;
// create the UDP discovery for the TCP lateral
if ( lac.isUdpDiscoveryEnabled() )
{
// need a factory for this so it doesn't
// get dereferenced, also we don't want one for every region.
discovery = UDPDiscoveryManager.getInstance().getService( lac, cacheMgr );
discovery.addNoWaitFacade( lcnwf, lac.getCacheName() );
if ( log.isInfoEnabled() )
{
log.info( "Created UDPDiscoveryService for TCP lateral cache." );
}