public FileResource(DirectoryRestlet directoryRestlet, String basePath)
public FileResource(ContextClient fileClient, String basePath)
   public FileResource(DirectoryRestlet directoryRestlet, String basePath)   {      // Update the member variables      this.directoryRestlet = directoryRestlet;      logger.info("Parameter base path: " + basePath);      // Compute the absolute file path      StringBuilder filePath = new StringBuilder(directoryRestlet.getRootPath());      int lastIndex = -1;            if(!basePath.equals("."))      {         char nextChar;         for(int i = 0; i < basePath.length(); i++)         {            nextChar = basePath.charAt(i);            if(nextChar == '/')            {               // Remember the position of the last slash               lastIndex = i;                  // Convert the URI separator to the system dependent path separator               filePath.append(File.separatorChar);            }            else            {               filePath.append(nextChar);            }         }      }            // Try to detect the presence of the file      this.basePath = filePath.toString();      if(new File(this.basePath).isDirectory())      {         // Append the index name         String indexName = getDirectoryRestlet().getIndexName();         if(indexName != null)         {            this.basePath = this.basePath + indexName;            this.baseName = indexName;         }      }      else      {         if(lastIndex == -1)         {            this.baseName = basePath;         }         else         {            this.baseName = basePath.substring(lastIndex + 1);         }      }      // Remove the extensions from the base name      int dotIndex = this.baseName.indexOf('.');      if(dotIndex != -1) this.baseName = this.baseName.substring(0, dotIndex);      // Log results      logger.info("Converted base path: " + this.basePath);      logger.info("Converted base name: " + this.baseName);   }