private void registerResource(String publicID, String resourceName) {
    """
	Adds a URL to the specified resource (as returned by the system classloader).
	to the resource table of the resolver.
	@param publicID the public id of the resource
	@param resourceName the path (starting from a location in the class path)
	and name of the dtd that should be used by the resolver for documents
	with the specified public id.
    """
        URL url = this.getClass().getClassLoader().getResource(resourceName);
        if (url != null) {
            resources.put(publicID, url);
        }
        else {
            //All the slee dtds should be packaged locally in sar of slee itself
            throw new IllegalStateException("Cannot find resource:" + resourceName);
        }
    }
private void registerResource(String publicID, String resourceName)
    {
        URL url = this.getClass().getClassLoader().getResource(resourceName);
        if (url != null) {
            resources.put(publicID, url);
        }
        else {
            //All the slee dtds should be packaged locally in sar of slee itself
            throw new IllegalStateException("Cannot find resource:" + resourceName);
        }
    }
private void registerResource ( String publicID , String resourceName ) { URL url = this . getClass ( ) . getClassLoader ( ) . getResource ( resourceName ) ; if ( url != null ) { resources . put ( publicID , url ) ; } else { //All the slee dtds should be packaged locally in sar of slee itself
 throw new IllegalStateException ( "Cannot find resource:" + resourceName ) ; } }
Adds a URL to the specified resource (as returned by the system classloader).
to the resource table of the resolver.
@param publicID the public id of the resource
@param resourceName the path (starting from a location in the class path)
and name of the dtd that should be used by the resolver for documents
with the specified public id.
Adds a URL to the specified resource ( as returned by the system classloader ) . to the resource table of the resolver .