if error null inbound getSession set order-number response getEService

1
2
3
4
5
6
7
8
if (error == null) {
inbound.getSession().set("order-number", response.getEServiceResult().getExtOrderNumber());
inbound.getSession().save();
String comment = response.getEServiceResult().getComment();
outbound.setContentType("plain/text+status");
outbound.setContent( (comment!=null && !"".equals(comment)) ? (comment) : ("Заявка зарегистрирована") );
}