}
public void execute() throws Exception {
PrintWriter out = response.getWriter();
MedicalSpeciality speciality = null;
try {
if (! request.isAuthorized()) {
throw new InvalidSessionException();
}
//Complaint Normal
String code = request.getInput("codeSpeciality");
String description = request.getInput("descricaoMedica");
System.out.println("asdfas!! "+description);
speciality = new MedicalSpeciality(description);
//#if norelacional
//@ speciality.setCode(Integer.parseInt(code)); //Thiago alterou aqui
//#endif
//#if relacional
speciality.setId(Long.parseLong(code));
//#endif
facade.insert(speciality);
out.println(HTMLCode.htmlPageAdministrator("Operation executed", "MedicalSpecialty inserted"));