code: public static DistributedMap getDistributedMap() {
          final String methodName="getDistributedMap()";
          if (tc.isEntryEnabled()) {
              Tr.entry(tc, methodName);
          }
          DistributedMap distributedMap = null;
          Context context = null;
          if (isObjectCachingEnabled()) {
              try {
                  context = new InitialContext();
                  distributedMap  = (DistributedObjectCache)context.lookup(DCacheBase.DEFAULT_BASE_JNDI_NAME);
              } catch ( NamingException e ) {
                  com.ibm.ws.ffdc.FFDCFilter.processException(e, "com.ibm.websphere.cache.DynamicCacheAccessor.getDistributedMap", "99", com.ibm.websphere.cache.DynamicCacheAccessor.class);
                  // No need to do anything else, since FFDC prints stack traces
              }
              finally{
                  try {
                      if ( context!=null) {
                          context.close();                        
                      }
                  } catch ( NamingException e ) {
                      com.ibm.ws.ffdc.FFDCFilter.processException(e, "com.ibm.websphere.cache.DynamicCacheAccessor.getDistributedMap", "110", com.ibm.websphere.cache.DynamicCacheAccessor.class);
                  }
              }
          } else {
              // DYNA1060E=DYNA1060E: WebSphere Dynamic Cache instance named {0} cannot be used because of Dynamic Object cache service has not be started.
              Tr.error(tc, "DYNA1060W", new Object[] {DCacheBase.DEFAULT_BASE_JNDI_NAME});
          }
          if (tc.isEntryEnabled()) {
              Tr.exit(tc, methodName, distributedMap);
          }
          return distributedMap;
      }
docs: This method will return a DistributedMap reference to the dynamic cache.
  
  @return Reference to the DistributedMap or null
  if caching is disabled.
  @since v6.0
  @ibm-api
  @deprecated baseCache is used for servlet caching. It should not be used
  as a DistributedMap.