code: static boolean isDirectory(final File file)
  	{
  		try {
  			Boolean exists = getInstance().doPrivileged(
  					new PrivilegedAction<Boolean>() {
  						public Boolean run() {
  							return Boolean.valueOf(file.isDirectory());
  						}
  					}
  			);
  			return exists.booleanValue();
  		}
  		catch (SecurityException se) {
  			// TODO: Add logging here but be careful since this code is used in logging logic itself
  			//       and may result in an indefinite loop.
  			return false;
  		}
  	}
docs: Using privileged java security, determine if the abstract pathname for the specified
  file is a directory.
  <p>
  @param file a <code>File</code> object whose abstract pathname is to be checked.
  @return true if and only if the abstract pathname is a directory. Otherwise false. If a
  SecurityException is encountered, the exception is logged and absorbed and false is returned.