public RemoteLibrary putLibrary(String path, Object library) {
        RemoteLibrary oldLibrary = servlet.putLibrary(path, library);
        String name = servlet.getLibraryMap().get(path).getName();
        log.info(String.format("Mapped path %s to library %s.", path, name));
        return oldLibrary;
    }
public RemoteLibrary putLibrary(String path, Object library) {
        RemoteLibrary oldLibrary = servlet.putLibrary(path, library);
        String name = servlet.getLibraryMap().get(path).getName();
        log.info(String.format("Mapped path %s to library %s.", path, name));
        return oldLibrary;
    }
public RemoteLibrary putLibrary ( String path , Object library ) { RemoteLibrary oldLibrary = servlet . putLibrary ( path , library ) ; String name = servlet . getLibraryMap ( ) . get ( path ) . getName ( ) ; log . info ( String . format ( "Mapped path %s to library %s." , path , name ) ) ; return oldLibrary ; }
Map the given test library to the specified path. Paths must:
<ul>
<li>start with a /</li>
<li>contain only alphanumeric characters or any of these: / - . _ ~</li>
<li>not end in a /</li>
<li>not contain a repeating sequence of /s</li>
</ul>

Example: <code>putLibrary("/myLib", new MyLibrary());</code>

@param library
instance of the test library
@param path
path to map the test library to
@return the previous library mapped to the path, or null if there was no
mapping for the path
Map the given test library to the specified path . Paths must : <ul > <li > start with a / < / li > <li > contain only alphanumeric characters or any of these : / - . _ ~< / li > <li > not end in a / < / li > <li > not contain a repeating sequence of / s< / li > < / ul >