code: void clearCache(Entity entity, String name) {
          final Asset asset = getAsset(entity);
          IAttributeDefinition def = null;
          if (name != null) {
              def = asset.getAssetType().getAttributeDefinition(name);
          }
          asset.clearAttributeCache(def);
      }
docs: Clear an attribute from cache of specified Entity.
  
  @param entity to clear attribute of.
  @param name   of the attribute to clear;
  if null, all attributes will be cleared from cache.