}
private boolean hasServiceRun(final String username) throws Exception {
// Now the user will be expired
final boolean result;
final UserDataVO data = getUserAdminSession().findUser(admin, username);
final int status;
if (data == null) {
throw new Exception("User we have added can not be found");
}
status = data.getStatus();
log.debug("status: " + status);
result = status == UserDataConstants.STATUS_GENERATED;
return result;
}