code: @SuppressWarnings("unchecked")
      public String getDisplayName(boolean setAttr) throws Exception {
          String displayName = null;
          String securityName = getSecurityName(false);
          displayName = getDisplayNameForEntity(securityName);
  
          if (!((displayName == null) || (displayName.trim().length() == 0)) && setAttr)
              ((List<String>) entity.get(URBridgeConstants.DISPLAY_NAME)).add(displayName);
  
          return displayName;
      }
docs: Returns the displayName of a user or a group.
  
  @param setAttr a boolean indicating whether to actually set the attribute
  in the entity or just perform a lookup.
  @return the user or group's displayName.
  @throws Exception identifier values are missing or the underlying
  registry threw an error.