added managed bean; added DTOs.