Bug 184762 BIRT Model - Enhancments to the level defintion
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/ModuleHandle.java
* @param nameSpaceList
	 *            the list contains elements from name space
	 * @param modules
	 *            the list contains design handle and library handle
	 * @param slotID
	 *            slot id
	 * @return the list contains sorted design elements.
	 */
	private List checkVisibleElements( List nameSpaceList, List modules,
			int slotID )
	{
		assert modules != null;
		List resultList = new ArrayList( );
		for ( int i = 0; i < modules.size( ); ++i )
		{
			ModuleHandle handle = (ModuleHandle) modules.get( i );
			SlotHandle slotHandle = handle.getSlot( slotID );
			for ( int j = 0; j < slotHandle.getCount( ); ++j )
			{
				DesignElementHandle contentHandle = slotHandle.get( j );
				DesignElement content = contentHandle.getElement( );
				if ( nameSpaceList.contains( content ) )
				{
					resultList.add( content );
				}
			}
		}
		return resultList;
	}
}