@Override
	public void endElement(String uri, String localName, String qName) throws SAXException {
		super.endElement(uri, localName, qName);
		tag = Tags.fromString(qName);
		if (tag == null) {
			return;
		}

		switch (tag) {
		case FIRSTNAME:
			user.setFirstName(valueTag);
			break;
		case LASTNAME:
			user.setLastName(valueTag);
			break;
		case EMAIL:
			user.setEmail(valueTag);
			break;
		case ROLE:
			int id = Integer.parseInt(valueTag);
			user.setRole(Role.getRole(id));
			break;
		case PASSWORD:
			user.setPassword(valueTag);
			break;
		case URLFOTO:
			user.setUrlFoto(valueTag);
			break;
		case USER:
			getEntities().put(user.getId(), user);
			break;
		default:
		}
		tag = null;
	}