class OperationMgmtService {

    /**
     * Logger.
     */
    private static final Logger LOGGER = LogManager.getLogger(OperationMgmtService.class);

    /**
     * Operation repository.
     */
    @Inject
    private OperationRepository operationRepository;

    /**
     * Adds the specified operation.
     *
     * @param operation the specified operation
     */
    @Transactional
    public void addOperation(final JSONObject operation) {<FILL_FUNCTION_BODY>}
}

        try {
            operationRepository.add(operation);
        } catch (final Exception e) {
            LOGGER.log(Level.ERROR, "Adds an operation failed", e);
        }
    
<no_super_class>