}else if ((Product != null) && (Product.equals("rescue"))){
//Para recuperar un producto y sus themes dando su id
try {
JSONObject responseObj = new JSONObject();
String id=request.getParameter("id");
Product product= scrum.getProduct(Integer.valueOf(id));
responseObj.put("Description", product.getDescription());
responseObj.put("name", product.getName());
responseObj.put("Done", product.getDone());
responseObj.put("CurrentEstimation",product.getCurrentEstimation());
responseObj.put("InitialEstimation",product.getInitialEstimation());
responseObj.put("Assigned",product.getAssigned());
responseObj.put("Planned",product.getPlanned());
responseObj.put("id", product.getId());
/*Sacamos los themes de el producto para enviarlos */
List<Theme> temas = product.getThemeList();
List<JSONObject> themeObjects = new LinkedList<JSONObject>();
for (Theme tema : temas) {
JSONObject themeObj = new JSONObject();
themeObj.put("description", tema.getDescription());
themeObj.put("name", tema.getName());
themeObj.put("id", tema.getId());
themeObj.put("parent",tema.getParent());
themeObj.put("parentproduct",tema.getParentProduct());
themeObj.put("stored",tema.getStored());
themeObjects.add(themeObj);
}
/*Sacamos los Subtemas del producto para enviarlos */
List<Theme> Subtemas = product.getSubThemeList();
List<JSONObject> SubthemeObjects = new LinkedList<JSONObject>();
for (Theme tema : Subtemas) {
JSONObject themeObj = new JSONObject();
themeObj.put("description", tema.getDescription());
themeObj.put("name", tema.getName());