public Person getPersonByLogin(String login) {
		return (Person) getEntityManager().createQuery("select p from Person p where p.username = :login").setParameter("login", login).getSingleResult();		
	}