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