public boolean save(User user)
    {
        // inserted this pseudo-condition for testing purposes.
        if(true)
            return true;

        insertUserSql = String.format(insertUserSql, user.getName(), user.getPassword());
        Connection conn = null;
        Statement stmt = null;
        try
        {
            conn = DbConnectionFactory.getConnection();
            stmt = conn.createStatement();
            stmt.execute(insertUserSql);
        }
        catch (Exception e)
        {
            e.printStackTrace();
            return false;
        }
        finally
        {
            if(conn != null)
            {
                try
                {
                    conn.close();
                }
                catch (SQLException e)
                {
                    //ignore
                }
            }
            if(stmt != null)
            {
                try
                {
                    stmt.close();
                }
                catch (SQLException e)
                {
                    //ignore
                }
            }
        }

        return true;
    }