class SimpleCatalogManager implements CatalogManager {

    @Override
    public <T extends Record> T deleteRecord(User user, Resource recordId, Class<T> recordClass) {
        try (RepositoryConnection conn = configProvider.getRepository().getConnection()) {
            OrmFactory<? extends Record> serviceType = getFactory(recordId, conn, true);
            if (!serviceType.getType().equals(recordClass)) {
                throw new IllegalArgumentException("Service for factory " + recordClass
                        + " is unavailable or doesn't exist.");
            }
            RecordService<T> service = getRecordService(recordClass);
            return service.delete(recordId, user, conn);
        }
    }

    public  SimpleCatalogManager();

}