* @return The FileListener.
* @throws Exception if an error occurs.
*/
protected FileListener getListener() throws Exception
{
FileListener listener = this.listener.get();
if (listener == null)
{
FileObject file = fs.resolveFile(name);
file.getFileSystem().removeListener(file, this);
}