* @param <V> the return type
*/
private abstract class TokenTask<V> extends ContextualTask<V> {
protected final TokenContainer getTokenContainer() {
SessionContext ctx = chromatticLifeCycle.getContext();
ChromatticSession session = ctx.getSession();
TokenContainer container = session.findByPath(TokenContainer.class, lifecycleName);
if (container == null) {
container = session.insert(TokenContainer.class, lifecycleName);
}
return container;