code: public void cache(AtlasEntityWithExtInfo entity) {
          if (entity != null && entity.getEntity() != null && entity.getEntity().getGuid() != null) {
              entityCacheV2.put(entity.getEntity().getGuid(), entity);
          }
      }
docs: Adds the specified instance to the cache