/**
  * Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
  *
  * @param request servlet request
  * @param response servlet response
  * @throws ServletException if a servlet-specific error occurs
  * @throws IOException if an I/O error occurs
  */
 protected void processRequest(HttpServletRequest request, HttpServletResponse response)
     throws ServletException, IOException, NameException {
   response.setContentType("text/html;charset=UTF-8");
   try (PrintWriter out = response.getWriter()) {
     String CurriculumName = request.getParameter("CurriculumName");
     JSONObject result = new JSONObject();
     try {
       Curriculum curriculum = CurriculumManager.getInstance().getCurriculumByName(CurriculumName);
       result.put("CurriculumDescription", curriculum.getDescription());
       result.put("CurriculumName", curriculum.getName());
       out.write(result.toString());
     } catch (ClassNotFoundException | SQLException | JSONException ex) {
       Logger.getLogger(GetCurriculumByNameServlet.class.getName()).log(Level.SEVERE, null, ex);
     }
   }
 }
 public static void guardarRamos(List<Ramo> ramoseleccionados) {
   Curriculum curriculumAlumno = alumno.curriculum;
   curriculumAlumno.setRamosPriorizados(ramoseleccionados);
 }