/**
  * Builds the specific location
  *
  * @return the specific location
  */
 private String buildResourceLocation() {
   final StringBuilder sb = new StringBuilder();
   final List<SpaceInstLight> spaces =
       new AdminController(null).getPathToComponent(getComponentInstanceId());
   if (spaces != null) {
     for (final SpaceInstLight space : spaces) {
       if (sb.length() > 0) {
         sb.append(NotificationResourceData.LOCATION_SEPARATOR);
       }
       sb.append(space.getName());
     }
   }
   return sb.toString();
 }
  /*
   * (non-Javadoc)
   * @see com.stratelia.silverpeas.silverStatisticsPeas.control.AbstractPieChartBuilder
   * #getChartTitle()
   */
  @Override
  public String getChartTitle() {
    String title = message.getString("silverStatisticsPeas.VolumeDocsNumber") + " ";

    try {
      if (StringUtil.isDefined(this.spaceId) && (!"WA0".equals(this.spaceId))) {
        SpaceInstLight space = AdminReference.getAdminService().getSpaceInstLightById(this.spaceId);
        title += message.getString("silverStatisticsPeas.FromSpace") + " [" + space.getName() + "]";
      }
    } catch (Exception e) {
      SilverTrace.error(
          "silverStatisticsPeas",
          "DocPieChartBuilder.getChartTitle()",
          "root.EX_SQL_QUERY_FAILED",
          e);
    }
    return title;
  }