@Inject
private BaseEntityManager<String, Role> roleEntityManager;
@Transactional(type = TransactionalType.READOLNY)
public boolean authUser(String name, String password) {
User user = this.userEntityManager.load(
"named:byNameAndPassword", name, MD5Util.toMD5(password));
return user != null;
}