}
});
if (isConversational) {
final Object sessionResource = ((ConversationMessageWrapper) message).getIncomingMessage().getResource(Object.class, "Session");
final LaundryReclaim reclaim =
LaundryListProviderFactory.get().getLaundryList(sessionResource).add(new Laundry() {
@Override
public void clean() {
task.cancel(true);
}
});
task.setExitHandler(new Runnable() {
@Override
public void run() {
reclaim.reclaim();
}
});
}
return task;