if ( StringUtil.isBlank( theLocation ) ) return null;     List libraries = getLibraries( ); for ( int i = 0; i < libraries.size( ); i++ ) { Library library = (Library) libraries.get( i ); if ( theLocation.equalsIgnoreCase( library.getLocation( ) ) ) return library; }    return null;
return getLibraryByLocation( theLocation, IAccessControl.DIRECTLY_INCLUDED_LEVEL );
	public Library getLibraryByLocation( String theLocation )	{		// if the location path is null or empty, return null		if ( StringUtil.isBlank( theLocation ) )			return null;		// look up the library with the location path in the included library		// list		List libraries = getLibraries( );		for ( int i = 0; i < libraries.size( ); i++ )		{			Library library = (Library) libraries.get( i );			if ( theLocation.equalsIgnoreCase( library.getLocation( ) ) )				return library;		}		// the library with the given location path is not found, return null		return null;	}