protected final void resolveProxies ( ) { final List < String > unresolved = new ArrayList < String > ( ) ; if ( ! resolvedAllProxies ( unresolved , 0 ) ) { LOG . warn ( "Could not resolve the following proxies ({}):" , unresolved . size ( ) ) ; for ( final String ref : unresolved ) { LOG . warn ( "Not found: {}" , ref ) ; } final Iterator < Notifier > it = resourceSet . getAllContents ( ) ; while ( it . hasNext ( ) ) { final Notifier next = it . next ( ) ; if ( next instanceof EObject ) { final EObject obj = ( EObject ) next ; if ( obj . eIsProxy ( ) ) { try { it . remove ( ) ; } catch ( final UnsupportedOperationException ex ) { LOG . error ( "Could not remove proxy: " + obj , ex ) ; } } } } } }
Tries to resolve all proxies .