List l = new ArrayList( ); for ( int i = 0; i < classPathArray.length; i++ ) { String cpValue = classPathArray[i]; File file = new File( cpValue ); try { l.add( file.toURL( ) ); } catch ( MalformedURLException e ) { e.printStackTrace( ); } } urls = ( URL[] ) l.toArray( new URL[l.size( )] ); }  if ( urls != null )
return cl.loadClass( className );    } catch ( ClassNotFoundException e )
	private static Class getClassUsingCustomClassPath( String className,			String classPathKey )	{		String classPath = System.getProperty( classPathKey );		if ( classPath == null || classPath.length( ) == 0 || className == null )			return null;		String[] classPathArray = classPath.split( PROPERTYSEPARATOR, -1 );		URL[] urls = null;		if ( classPathArray.length != 0 )		{			List l = new ArrayList( );			for ( int i = 0; i < classPathArray.length; i++ )			{				String cpValue = classPathArray[i];				File file = new File( cpValue );				try				{					l.add( file.toURL( ) );				} catch ( MalformedURLException e )				{					e.printStackTrace( );				}			}			urls = ( URL[] ) l.toArray( new URL[l.size( )] );		}		if ( urls != null )		{			ClassLoader cl = new URLClassLoader( urls, ScriptExecutor.class					.getClassLoader( ) );			try			{				return cl.loadClass( className );				// Note: If the class can				// not even be loadded by this				// loader either, null will be returned			} catch ( ClassNotFoundException e )			{				// Ignore			}		}		return null;	}