public void addCustomTasks(List<TaskState> list) {
		if (job == null)
			initializeJob();
		job.removeAllNonSystemTasks();
		if (list == null || list.isEmpty())
			return;
		for (TaskState a : list) {
			Loadable l = new AbstractLoadable() {
				public void execute() {
					job.runScript(getScript());
					if (job.getIndexOfStep() >= getLifetime()) {
						setCompleted(true);
					}
				}
			};
			l.setEnabled(a.isEnabled());
			l.setName(a.getName());
			l.setDescription(a.getDescription());
			l.setScript(a.getScript());
			l.setInterval(a.getInterval());
			l.setLifetime(a.getLifetime());
			l.setPriority(a.getPriority());
			l.setSystemTask(false);
			job.add(l);
		}
	}