if ( host == null ) {
host = hostAPI.findParentHost( parent, systemUser, false );
}
} catch ( DotDataException e ) {
Logger.error( FileFactory.class, e.getMessage(), e );
throw new DotRuntimeException( e.getMessage(), e );
} catch ( DotSecurityException e ) {
Logger.error( FileFactory.class, e.getMessage(), e );
throw new DotRuntimeException( e.getMessage(), e );
}
identifier.setHostId( host.getIdentifier() );
identifier.setURI( parent != null ? workingWebAsset.getURI( parent ) : workingWebAsset.getURI() );
//HibernateUtil.saveOrUpdate(identifier);
APILocator.getIdentifierAPI().save( identifier );