code: Map<UUID, UUID> getActivityCodes(Activity activity)
     {
        Map<UUID, UUID> map = m_activityCodeCache.get(activity);
        if (map == null)
        {
           map = new HashMap<UUID, UUID>();
           m_activityCodeCache.put(activity, map);
           for (CodeAssignment ca : activity.getCodeAssignment())
           {
              UUID code = getUUID(ca.getCodeUuid(), ca.getCode());
              UUID value = getUUID(ca.getValueUuid(), ca.getValue());
              map.put(code, value);
           }
        }
        return map;
     }
docs: For a given activity, retrieve a map of the activity code values which have been assigned to it.
  
  @param activity target activity
  @return map of activity code value UUIDs