code: public <T> T getAttribute(String attrName, Class<T> clazz) {
          Lock lock = lockForRead();
          try {
              return MapUtils.getValue(attributes, attrName, clazz);
          } finally {
              lock.unlock();
          }
      }
docs: Get a BO's attribute.
  
  @param attrName
  @param clazz
  @return