} finally { ec.unlock();
    public static People userFromRequest(WORequest r, EOEditingContext ec) {        People user=null;        //This gets us the encrypted ID stored for the login cookie        String  encryptedPrimaryKey=r.cookieValueForKey("BTL");        if (encryptedPrimaryKey !=null &&            !encryptedPrimaryKey.equals("") &&            !encryptedPrimaryKey.equals("-")) {            String clearPrimaryKey = ERXCrypto.blowfishDecode(encryptedPrimaryKey);            if (clearPrimaryKey!=null) {                clearPrimaryKey = clearPrimaryKey.trim();                try{                    Integer clearPrimaryKeyInt = new Integer(clearPrimaryKey);                    NSDictionary dictionary = new NSDictionary(clearPrimaryKeyInt, new String("id"));                    user = (People)EOUtilities.objectWithPrimaryKey(ec,                                                                    "People",                                                                    dictionary);                } catch(NumberFormatException NFe){                    //WOApplication.application().logString(NFe.toString());                }            }        }        return user;    }