private static URL getUsersUrl() throws Exception {
        String usersLoc = System.getProperty(USERS_FILE_PROP);
        if (usersLoc == null) {
            return null;
        }
        // Try a file first.
        try {
            File usersFile = new File(usersLoc);
            if (usersFile.isFile()) {
                return usersFile.toURI().toURL();
            }
        } catch (Exception e) {}
        // Try it as a URL.
        URL url = new URL(usersLoc);
        return url;
    }
private static URL getUsersUrl ( ) throws Exception { String usersLoc = System . getProperty ( USERS_FILE_PROP ) ; if ( usersLoc == null ) { return null ; } try { File usersFile = new File ( usersLoc ) ; if ( usersFile . isFile ( ) ) { return usersFile . toURI ( ) . toURL ( ) ; } } catch ( Exception e ) { } URL url = new URL ( usersLoc ) ; return url ; }
@throws Exception