agave-tags/tags-core/src/main/java/org/iplantc/service/tags/dao/TagDao.java
/**
	 * Resyncs the {@link Tag} with the stored version replacing
	 * any local changes.
	 * 
	 * @param tag the tag to refresh
	 * @throws TagException if unable to refresh the tag
	 */
Resyncs the  Tag with the stored version replacing
any local changes.

@param tag the tag to refresh
@throws TagException if unable to refresh the tag
Resyncs the Tag with the stored version replacing any local changes . @param tag the tag to refresh @throws TagException if unable to refresh the tag
public void refresh(Tag tag) throws TagException
	{
		try
		{
			HibernateUtil.beginTransaction();
			Session session = HibernateUtil.getSession();
			session.clear();
			session.refresh(tag);
		}
		catch (HibernateException ex)
		{
			try
			{
				if (HibernateUtil.getSession().isOpen()) {
					HibernateUtil.rollbackTransaction();
				}
			}
			catch (Exception ignored) {}
			throw new TagException("Failed to merge tag", ex);
		}
		finally
		{
			try { HibernateUtil.commitTransaction(); } catch (Throwable ignored) {}
		}
	}
public void refresh ( Tag tag ) throws TagException { try { HibernateUtil . beginTransaction ( ) ; Session session = HibernateUtil . getSession ( ) ; session . clear ( ) ; session . refresh ( tag ) ; } catch ( HibernateException ex ) { try { if ( HibernateUtil . getSession ( ) . isOpen ( ) ) { HibernateUtil . rollbackTransaction ( ) ; } } catch ( Exception ignored ) { } throw new TagException ( "Failed to merge tag" , ex ) ; } finally { try { HibernateUtil . commitTransaction ( ) ; } catch ( Throwable ignored ) { } } }
Resyncs the {@link Tag} with the stored version replacing
 any local changes.
Resyncs the { @link Tag } with the stored version replacing any local changes .