import com.barneyb.*
variables.user = request.sess.get(User.class, Long.parseLong(attributes.id))
variables.user.firstName = attributes.firstName
variables.user.lastName = attributes.lastName
variables.user.username = attributes.username
variables.user.email = attributes.email
variables.user.modifyDate = new Date()
request.sess.save(variables.user)
request.sess.flush()