throw new LibraryException( library,
throw new LibraryException( library, new String[]{library == null ? null : library.getNamespace( )},
	public void reloadLibrary( String location ) throws DesignFileException,			SemanticException	{		Library library = module.getLibraryByLocation( location );		// library not found.		if ( !module.getLibraries( ).contains( library ) )		{			throw new LibraryException( library,					LibraryException.DESIGN_EXCEPTION_LIBRARY_NOT_FOUND );		}		String namespace = library.getNamespace( );		IncludedLibrary includedItem = module.findIncludedLibrary( namespace );		String path = includedItem.getFileName( );		URL url = module.findResource( path, IResourceLocator.LIBRARY );		if ( url == null )		{			DesignParserException ex = new DesignParserException(					new String[]{path},					DesignParserException.DESIGN_EXCEPTION_FILE_NOT_FOUND );			List exceptionList = new ArrayList( );			exceptionList.add( ex );			throw new DesignFileException( path, exceptionList );		}		Map overriddenValues = null;		ActivityStack activityStack = getActivityStack( );		// TODO only send the library reload event in the end.		activityStack.startFilterEventTrans( null );		try		{			// must use content command to remove all virtual elements if			// required. This can solve unresolving issues like DataSet, Style			// references, as well as removing names from name space.			overriddenValues = dealAllElementDecendents( library, RELOAD_ACTION );			doDropLibrary( library );			doAddLibrary( path, namespace, RELOAD_ACTION, overriddenValues );		}		catch ( SemanticException e )		{			activityStack.rollback( );			throw e;		}		catch ( DesignFileException e )		{			activityStack.rollback( );			throw e;		}		activityStack.commit( );		// clears the activity stack to avoid potential problems.		activityStack.flush( );		LibraryEvent event = new LibraryEvent( module				.getLibraryByLocation( location ), LibraryEvent.RELOAD );		module.broadcast( event );	}