public static SleeProvider getSleeProvider(String peerClassName, ClassLoader classloader) throws NullPointerException, PeerUnavailableException {
    """
	Get an instance of a <code>SleeProvider</code> peer class using the specified
	class loader.
	@param peerClassName the fully-qualified class name of a class that
	implements the <code>SleeProvider</code> interface.
	@param classloader the classloader to use to load the peer class.
	@return an instance of the specified class.
	@throws NullPointerException if <code>peerClassName</code> or <code>classloader</code>
	is <code>null</code>.
	@throws PeerUnavailableException if the peer class could not be instantiated
	or did not implement the <code>SleeProvider</code> interface.
    """
        if (peerClassName == null) throw new NullPointerException("peerClassName is null");

        if (peerClassName.length() == 0) throw new PeerUnavailableException("peerClassName is zero-length");

        try {
            return (SleeProvider)classloader.loadClass(peerClassName).newInstance();
        }
        catch (Throwable t) {
            throw new PeerUnavailableException("Peer class could not be instantiated", t);
        }
    }
public static SleeProvider getSleeProvider(String peerClassName, ClassLoader classloader) throws NullPointerException, PeerUnavailableException {
        if (peerClassName == null) throw new NullPointerException("peerClassName is null");

        if (peerClassName.length() == 0) throw new PeerUnavailableException("peerClassName is zero-length");

        try {
            return (SleeProvider)classloader.loadClass(peerClassName).newInstance();
        }
        catch (Throwable t) {
            throw new PeerUnavailableException("Peer class could not be instantiated", t);
        }
    }
public static SleeProvider getSleeProvider ( String peerClassName , ClassLoader classloader ) throws NullPointerException , PeerUnavailableException { if ( peerClassName == null ) throw new NullPointerException ( "peerClassName is null" ) ; if ( peerClassName . length ( ) == 0 ) throw new PeerUnavailableException ( "peerClassName is zero-length" ) ; try { return ( SleeProvider ) classloader . loadClass ( peerClassName ) . newInstance ( ) ; } catch ( Throwable t ) { throw new PeerUnavailableException ( "Peer class could not be instantiated" , t ) ; } }
Get an instance of a <code>SleeProvider</code> peer class using the specified
class loader.
@param peerClassName the fully-qualified class name of a class that
implements the <code>SleeProvider</code> interface.
@param classloader the classloader to use to load the peer class.
@return an instance of the specified class.
@throws NullPointerException if <code>peerClassName</code> or <code>classloader</code>
is <code>null</code>.
@throws PeerUnavailableException if the peer class could not be instantiated
or did not implement the <code>SleeProvider</code> interface.
Get an instance of a <code > SleeProvider< / code > peer class using the specified class loader .