Sub Handle(req As ServletRequest, resp As ServletResponse)
GenerarPago(jMap, resp, SQL)
StartMessageLoop
If SQL <> Null And SQL.IsInitialized Then SQL.Close
End Sub
Sub GenerarPago(jMap As Map, resp As ServletResponse, SQL As SQL)
Wait For(GeneraURLPago(SQL, IDsConBarra, Socio)) Complete (Result As String)
resp.Write(Result)
StopMessageLoop
End Sub
Sub GeneraURLPago(MSQL As SQL, IDs As String, User As Int) As ResumableSub
Wait For (j) JobDone(Job As HttpJob)
Return someValue
End Sub