private void loadUsers(final DataContext dataContext) throws IOException {
loadFile("users.txt", dataContext, new LineProcessor() {
public void processLine(String line, DataContext context) {
StringTokenizer tokenizer = new StringTokenizer(line, ",");
User user = new User();
user.setUsername(next(tokenizer));
user.setPassword(next(tokenizer));
user.setFullname(next(tokenizer));
user.setEmail(next(tokenizer));
context.registerNewObject(user);
}
});
}