class Q2TRestApp extends TesseraRestApplication {

    @Override
    public Set<Object> getSingletons() {

        Config config =
                serviceLocator.getServices().stream()
                        .filter(Config.class::isInstance)
                        .map(Config.class::cast)
                        .findAny()
                        .get();

        TransactionManagerFactory transactionManagerFactory = TransactionManagerFactory.create();

        TransactionManager transactionManager = transactionManagerFactory.create(config);
        TransactionResource transactionResource = new TransactionResource(transactionManager);
        RawTransactionResource rawTransactionResource = new RawTransactionResource(transactionManager);

        return Set.of(transactionResource, rawTransactionResource);
    }

    public  Q2TRestApp();
    public  Q2TRestApp(ServiceLocator serviceLocator);

}