protected void putInsideTransaction(final Entity featureEntity) {
        if (this.datastoreService.getCurrentTransaction(null) == null) {
            this.datastoreService.put(featureEntity);
        } else {
            final Transaction txn = this.datastoreService.beginTransaction();
            try {
                this.datastoreService.put(txn, featureEntity);
                txn.commit();
            } finally {
                if (txn.isActive()) {
                    txn.rollback();
                }
            }
        }
    }
protected void putInsideTransaction ( final Entity featureEntity ) { if ( this . datastoreService . getCurrentTransaction ( null ) == null ) { this . datastoreService . put ( featureEntity ) ; } else { final Transaction txn = this . datastoreService . beginTransaction ( ) ; try { this . datastoreService . put ( txn , featureEntity ) ; txn . commit ( ) ; } finally { if ( txn . isActive ( ) ) { txn . rollback ( ) ; } } } }
@param featureEntity