static private class SendToCoordinator extends Activity<StandaloneCandidacyProcess> {
@Override
public void checkPreConditions(StandaloneCandidacyProcess process, User userView) {
if (!isAllowedToManageProcess(userView)) {
throw new PreConditionNotValidException();
}
if (!process.isInStandBy()) {
throw new PreConditionNotValidException();
}
if (process.getCandidacyPeriod() == null || !process.hasStarted() || process.hasOpenCandidacyPeriod()) {
throw new PreConditionNotValidException();
}
}