final Login login = Login.readOpenedLoginByUsername(username); final User user = login == null ? null : login.getUser();
final Login login = Login.readLoginByUsername(username); final User user = login == null ? null : (login.isOpened()) ? login.getUser() : null;
    public static Person readPersonByUsernameWithOpenedLogin(final String username) {	final Login login = Login.readOpenedLoginByUsername(username);	final User user = login == null ? null : login.getUser();	return user == null ? null : user.getPerson();    }