User user = new User(); user.setUsername(username);
User user = (User) getSqlMapClientTemplate().queryForObject("getUser", username);
    public User getUser(String username) {        User user = new User();        user.setUsername(username);        List users = getSqlMapClientTemplate().queryForList("getUser", user);        if ((users != null) && (users.size() > 0)) {            user = (User) users.get(0);            List roles =            	getSqlMapClientTemplate().queryForList("getUserRoles", user);            user.setRoles(roles);        }        if ((users != null) && (users.size() == 0)) {            logger.warn("uh oh, user not found...");            throw new ObjectRetrievalFailureException(User.class, username);        }        return user;    }