Object first = collection.iterator ().next (); Asset firstAsset = (Asset) collection.iterator ().next (); publishAdd (makeNewAsset (getLDMService().getLDM(), "RAILCAR_68DODX", "brandNewAsset")); } catch (Exception exc) { error("Could not make asset."); error(exc.getMessage()); exc.printStackTrace(); } finally{ blackboard.closeTransactionDontReset(); }
publishAdd (makeNewAsset (getLDMService().getLDM(), "RAILCAR_68DODX", "brandNewAsset")); } catch (Exception exc) { error("Could not make asset."); error(exc.getMessage()); exc.printStackTrace(); } finally{ blackboard.closeTransactionDontReset(); }
  void addAsset () {	try {	  blackboard.openTransaction();	  Collection collection = myAssetCallback.getSubscription ().getCollection();			  Object first = collection.iterator ().next ();	  Asset firstAsset = (Asset) collection.iterator ().next ();	  publishAdd (makeNewAsset (getLDMService().getLDM(), "RAILCAR_68DODX", "brandNewAsset"));	} catch (Exception exc) {	  error("Could not make asset.");	  error(exc.getMessage());	  exc.printStackTrace();	}	finally{	  blackboard.closeTransactionDontReset();	}  }