code: public Long getLong(String key)
     {
        Long longValue = null;
        String sVal = getText(key);
        if ((sVal != null) && (sVal.length() > 0))
        {
           longValue = Long.valueOf(sVal);
        }
        return longValue;
     }
docs: ------------------------------------------------------------