public static Boolean isFile(final File target) {
        return AccessController.doPrivileged(new PrivilegedAction<Boolean>() {
            @Override
            public Boolean run() {
                return Boolean.valueOf(target.isFile());
            }
        });
    }
public static Boolean isFile ( final File target ) { return AccessController . doPrivileged ( new PrivilegedAction < Boolean > ( ) { @ Override public Boolean run ( ) { return Boolean . valueOf ( target . isFile ( ) ) ; } } ) ; }
TODO: Change the result to 'boolean'.