String sDBUser = props.getProperty("db.user");
String sDBPassword = props.getProperty("db.password");
if (sDBUser != null && sDBPassword != null && sDBPassword.startsWith("crypt:")) {
// the password is encrypted
AltEncrypter cypher = new AltEncrypter("cypherkey" + sDBUser);
sDBPassword = cypher.decrypt(sDBPassword.substring(6));
}
return new Session(props.getProperty("db.URL"), sDBUser,sDBPassword);
} catch (InstantiationException e) {