}
@Override
public void addOperatorDirectly(long actor, long instrumentId, String newOperatorEmail) {
if (!validator.canEditOperatorsList(actor, instrumentId)) {
throw new AccessDenied("Actor cant add more newOperators");
}
final Optional<User> newOperator = Optional.fromNullable(userRepository.findByEmail(newOperatorEmail));
final Instrument instrument = findInstrument(instrumentId);
if (newOperator.isPresent()) {
if (instrument.getOperators().contains(Util.USER_FROM_ID.apply(newOperator.get().getId()))) return;
if (!validator.canShareInstrument(actor, newOperator.get().getId())) {
throw new AccessDenied("Can't share instrument");
}
instrument.removePending(newOperator.get());
instrument.addOperator(newOperator.get());
notifier.userWasAddedToOperators(actor, newOperator.get().getId(), instrumentId);
} else {