@Override
public MoveProjectsToTrashResult execute(MoveProjectsToTrashAction action, ExecutionContext executionContext) {
List<ProjectMovedToTrashEvent> events = new ArrayList<ProjectMovedToTrashEvent>();
for(ProjectId projectId : action.getProjectIds()) {
OWLAPIProjectMetadataManager.getManager().setInTrash(projectId, true);
events.add(new ProjectMovedToTrashEvent(projectId));
}
return new MoveProjectsToTrashResult(new EventList<ProjectMovedToTrashEvent>(EventTag.getFirst(), events, EventTag.getFirst()));
}