agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/util/DomainSetup.java
/**
     * persist a single Software domain object using a json object to the database
     * @param softwareJson
     */
persist a single Software domain object using a json object to the database
@param softwareJson
persist a single Software domain object using a json object to the database @param softwareJson
public void persistSingleSoftwareEntry(JSONObject softwareJson) {
        try {
            Software software = Software.fromJSON(softwareJson,SOFTWARE_OWNER);
            software.setOwner(SYSTEM_OWNER);
            SoftwareDao.persist(software);
        } catch (JSONException e) {
            log.error("Unable to marshall software from json", e);
        }
    }
public void persistSingleSoftwareEntry ( JSONObject softwareJson ) { try { Software software = Software . fromJSON ( softwareJson , SOFTWARE_OWNER ) ; software . setOwner ( SYSTEM_OWNER ) ; SoftwareDao . persist ( software ) ; } catch ( JSONException e ) { log . error ( "Unable to marshall software from json" , e ) ; } }
persist a single Software domain object using a json object to the database
 @param softwareJson
persist a single Software domain object using a json object to the database @param softwareJson