mil.dod.th.ose.core/src/mil/dod/th/ose/core/factory/api/FactoryRegistry.java
private UUID createAndPersistObject(final FactoryInternal factory, final String name) 
            throws IllegalArgumentException, FactoryObjectInformationException
    {
        Preconditions.checkNotNull(factory);
        
        final UUID uuid = UUID.randomUUID();
        
        String objectName = name;
        Boolean autoRename = false;
        //if provided name is blank or null use default name instead.
        if (name == null || name.trim().isEmpty())
        {
            //default name
            objectName = Iterables.getLast(Splitter.on(".").split(factory.getProductType()), factory.getProductType());
            autoRename = true;
        }
        //persist the objects data
        persistNewObjectData(objectName, uuid, factory, autoRename);
        
        return uuid;
    }
/**
     * Creates and persists an instance of an object for the specified factory.
     * 
     * @param factory
     *     factory used to create the object
     * @param name
     *      the name to assign to the newly created object or null to use a default
     * @return
     *      UUID of the created factory object.
     * @throws IllegalArgumentException
     *      if the name is a duplicate of a name already in the data store
     * @throws FactoryObjectInformationException
     *      thrown if a problem occurs saving the object's data
     */
Creates and persists an instance of an object for the specified factory.

@param factory
factory used to create the object
@param name
the name to assign to the newly created object or null to use a default
@return
UUID of the created factory object.
@throws IllegalArgumentException
if the name is a duplicate of a name already in the data store
@throws FactoryObjectInformationException
thrown if a problem occurs saving the object's data
Creates and persists an instance of an object for the specified factory . @param factory factory used to create the object @param name the name to assign to the newly created object or null to use a default @return UUID of the created factory object . @throws IllegalArgumentException if the name is a duplicate of a name already in the data store @throws FactoryObjectInformationException thrown if a problem occurs saving the object ' s data
private UUID createAndPersistObject(final FactoryInternal factory, final String name) 
            throws IllegalArgumentException, FactoryObjectInformationException
    {
        Preconditions.checkNotNull(factory);
        final UUID uuid = UUID.randomUUID();
        String objectName = name;
        Boolean autoRename = false;
        if (name == null || name.trim().isEmpty())
        {
            objectName = Iterables.getLast(Splitter.on(".").split(factory.getProductType()), factory.getProductType());
            autoRename = true;
        }
        persistNewObjectData(objectName, uuid, factory, autoRename);
        return uuid;
    }
private UUID createAndPersistObject ( final FactoryInternal factory , final String name ) throws IllegalArgumentException , FactoryObjectInformationException { Preconditions . checkNotNull ( factory ) ; final UUID uuid = UUID . randomUUID ( ) ; String objectName = name ; Boolean autoRename = false ; if ( name == null || name . trim ( ) . isEmpty ( ) ) { objectName = Iterables . getLast ( Splitter . on ( "." ) . split ( factory . getProductType ( ) ) , factory . getProductType ( ) ) ; autoRename = true ; } persistNewObjectData ( objectName , uuid , factory , autoRename ) ; return uuid ; }
Creates and persists an instance of an object for the specified factory.
Creates and persists an instance of an object for the specified factory .
//if provided name is blank or null use default name instead. //default name //persist the objects data