public void addRelation() {

        try {
            if (m_throwable != null) {
                // relation data is corrupt, ignore relation
                if (LOG.isWarnEnabled()) {
                    LOG.warn(
                        Messages.get().getBundle().key(
                            Messages.LOG_IMPORTEXPORT_ERROR_IMPORTING_RELATION_1,
                            m_destination),
                        m_throwable);
                }
                getReport().println(m_throwable);
                getReport().addError(m_throwable);
                m_throwable = null;
                return;
            }
            RelationData relData = new RelationData(m_relationPath, m_relationId, m_relationType);
            m_relationsForResource.add(relData);
            m_relationData.put(Integer.valueOf(m_fileCounter), relData);
        } finally {
            m_relationId = null;
            m_relationPath = null;
            m_relationType = null;
        }
    }
public void addRelation ( ) { try { if ( m_throwable != null ) { if ( LOG . isWarnEnabled ( ) ) { LOG . warn ( Messages . get ( ) . getBundle ( ) . key ( Messages . LOG_IMPORTEXPORT_ERROR_IMPORTING_RELATION_1 , m_destination ) , m_throwable ) ; } getReport ( ) . println ( m_throwable ) ; getReport ( ) . addError ( m_throwable ) ; m_throwable = null ; return ; } RelationData relData = new RelationData ( m_relationPath , m_relationId , m_relationType ) ; m_relationsForResource . add ( relData ) ; m_relationData . put ( Integer . valueOf ( m_fileCounter ) , relData ) ; } finally { m_relationId = null ; m_relationPath = null ; m_relationType = null ; } }
Adds a relation to be imported from the current xml data.<p>

@see #addResourceRelationRules(Digester, String)