code: static boolean isFile(final File file)
  	{
  		try {
  			Boolean isFile = getInstance().doPrivileged(
  					new PrivilegedAction<Boolean>() {
  						public Boolean run() {
  							return Boolean.valueOf(file.isFile());
  						}
  					}
  			);
  			return isFile.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 specified File denotes a file (as
  opposed to a directory).
  <p>
  @param file a <code>File</code> object whose abstract pathname corresponds
  to the pathname to check.
  @return true if and only if the abstract pathname corresponds to a file. Otherwise
  false. If a SecurityException is encountered, the exception is logged and absorbed
  and false is returned.