19202122232425
if (((User) person.getPersonType("user")).getUserName().equals(userName)) { return person; } } } throw new UserNameDoesNotExistsInPersistenceException(userName); }