This is the solution I found:
Set a constant
private static final string DOMAIN = "mydomain.com";
Then get the user name from the userEntry and append string with alias and domain.
String userEmail = userEntry.getLogin.getUsername + "@" + DOMAIN;