code: public static String computeNewTitleProperty(String name) {
  
          String title = name;
          int lastDot = title.lastIndexOf('.');
          // check the mime type for the file extension
          if ((lastDot > 0) && (lastDot < (title.length() - 1))) {
              // remove suffix for Title and NavPos property
              title = title.substring(0, lastDot);
          }
          return title;
      }
docs: Returns the value for the Title property from the given resource name.<p>
  
  @param name the name of the resource
  
  @return the value for the Title property from the given resource name