mil.dod.th.ose.core/src/mil/dod/th/ose/core/impl/mp/TemplateProgramManagerImpl.java
private synchronized void persistTemplate(final MissionProgramTemplate template, final UUID templateUUID) throws 
            IllegalArgumentException, PersistenceFailedException
    {
        try
        {
            m_MissionValidator.validate(template);
        }
        catch (final ValidationFailedException | IllegalStateException ex)
        {
            throw new IllegalArgumentException("Template failed validation!", ex);
        }
        //serialize the validated template
        final byte[] bArray = XmlUtils.toXML(template, false);
        //try to persist the data
        m_PersistentDataStore.persist(this.getClass(), templateUUID, template.getName(), bArray);
    }
/**
     * Persist the template within the {@link PersistentDataStore}. 
     * 
     * @param template
     *     the template to persist
     * @param templateUUID
     *     the unique identifier of the template to persist       
     * @throws PersistenceFailedException
     *     thrown if the data was unable to be persisted 
     * @throws IllegalArgumentException
     *     thrown if the persisted data, description, uuid, or context parameters are invalid when making the call to
     *     persist the template 
     */
Persist the template within the  PersistentDataStore.

@param template
the template to persist
@param templateUUID
the unique identifier of the template to persist
@throws PersistenceFailedException
thrown if the data was unable to be persisted
@throws IllegalArgumentException
thrown if the persisted data, description, uuid, or context parameters are invalid when making the call to
persist the template
Persist the template within the PersistentDataStore . @param template the template to persist @param templateUUID the unique identifier of the template to persist @throws PersistenceFailedException thrown if the data was unable to be persisted @throws IllegalArgumentException thrown if the persisted data description uuid or context parameters are invalid when making the call to persist the template
private synchronized void persistTemplate(final MissionProgramTemplate template, final UUID templateUUID) throws 
            IllegalArgumentException, PersistenceFailedException
    {
        try
        {
            m_MissionValidator.validate(template);
        }
        catch (final ValidationFailedException | IllegalStateException ex)
        {
            throw new IllegalArgumentException("Template failed validation!", ex);
        }
        final byte[] bArray = XmlUtils.toXML(template, false);
        m_PersistentDataStore.persist(this.getClass(), templateUUID, template.getName(), bArray);
    }
private synchronized void persistTemplate ( final MissionProgramTemplate template , final UUID templateUUID ) throws IllegalArgumentException , PersistenceFailedException { try { m_MissionValidator . validate ( template ) ; } catch ( final ValidationFailedException | IllegalStateException ex ) { throw new IllegalArgumentException ( "Template failed validation!" , ex ) ; } final byte [ ] bArray = XmlUtils . toXML ( template , false ) ; m_PersistentDataStore . persist ( this . getClass ( ) , templateUUID , template . getName ( ) , bArray ) ; }
Persist the template within the {@link PersistentDataStore}.
Persist the template within the { @link PersistentDataStore } .
//serialize the validated template //try to persist the data