ScriptEngine script = ScriptFactory.getScriptEngine(ScriptFactory.BEANSHELL);
String sDBUser = m_App.getProperties().getProperty("db.user");
String sDBPassword = m_App.getProperties().getProperty("db.password");
if (sDBUser != null && sDBPassword != null && sDBPassword.startsWith("crypt:")) {
AltEncrypter cypher = new AltEncrypter("cypherkey" + sDBUser);
sDBPassword = cypher.decrypt(sDBPassword.substring(6));
}
script.put("hostname", m_App.getProperties().getProperty("machine.hostname"));
script.put("dbURL", m_App.getProperties().getProperty("db.URL"));
script.put("dbUser", sDBUser);