return created(ref).entity(TaskTransformer.taskSummary(task)).build();
} else {
return Response.status(Status.CREATED).entity(TaskTransformer.taskSummary(task)).build();
}
} else {
<BUG>throw new IllegalStateException("Add children only supported for spec instantiator instances");
}</BUG>
}
@Override
public List<TaskSummary> listTasks(String applicationId, String entityId) {

return created(ref).entity(TaskTransformer.taskSummary(task)).build();
} else {
return Response.status(Status.CREATED).entity(TaskTransformer.taskSummary(task)).build();
}
} else {
throw new IllegalStateException("Spec could not be parsed to supply a compatible instantiator");
}
}
@Override
public List<TaskSummary> listTasks(String applicationId, String entityId) {
