taskContainer.all(new Action<Task>() {
public void execute(final Task task) {
final String name = task.getName();
final ModelPath modelPath = TaskContainerInternal.MODEL_PATH.child(name);
ModelState state = modelRegistry.state(modelPath);
if (state == null || state.getStatus() != ModelState.Status.IN_CREATION) {
modelRegistry.create(
ModelCreators.of(ModelReference.of(modelPath, ModelType.typeOf(task)), task)
.simpleDescriptor("Project.<init>.tasks." + name + "()")
.build()