private void salvaUnFichero(Part unaParte, Mensaje myMensaje) throws MailException {

    FileOutputStream fichero;
    try {
      fichero = new FileOutputStream("./" + unaParte.getFileName());
      // TODO VER EL TEMA DE CAMBIAR LA UBICACION DEL PATH
      myMensaje.agregarPathAdjunto("./" + unaParte.getFileName());

      InputStream imagen = unaParte.getInputStream();
      byte[] bytes = new byte[1000];
      int leidos = 0;

      while ((leidos = imagen.read(bytes)) > 0) {
        fichero.write(bytes, 0, leidos);
      }
    } catch (FileNotFoundException e) {
      throw new MailException("Archivo no encontrado", e);
    } catch (MessagingException e) {
      throw new MailException("Archivo no encontrado", e);
    } catch (IOException e) {
      throw new MailException("Error al escribir", e);
    }
  }