public Papel selectByName(String name) {
		Papel papel = null;
		CiaAereaDAO ciaDAO = new CiaAereaDAO();
		try {
			connection = Conexao.getInstance().obterConexao();
			connection.setAutoCommit(false);
			statement = connection.createStatement();

			resultSet = statement.executeQuery("SELECT * FROM TB_PAPEL WHERE NOME = '" + name + "'");
			resultSet.next();
			papel = new Papel(ciaDAO.selectById(resultSet.getLong("id_cia_aerea")));
			papel.setId(resultSet.getLong("id"));
			papel.setNome(resultSet.getString("nome"));
			papel.setDescricao(resultSet.getString("descricao"));
			

		} catch (Exception e) {
			// TODO: handle exception
			try {
				if (connection != null && !connection.isClosed()) {
					connection.rollback();
				}
			} catch (SQLException e2) {
				// TODO: handle exception
				e2.printStackTrace();
			} finally {
				try {
					if (resultSet != null) {
						resultSet.close();
					}
					if (statement != null) {
						statement.close();
					}
					if (connection != null) {
						connection.close();
					}
				} catch (Exception e3) {
					// TODO: handle exception
				}
			}
		}

		return papel;

	}