src/main/java/org/jboss/util/naming/NonSerializableFactory.java
/** Place an object into the NonSerializableFactory namespace for subsequent
    access by getObject. There cannot be an already existing binding for key.

    @param key the name to bind target under. This should typically be the
    name that will be used to bind target in the JNDI namespace, but it does
    not have to be.
    @param target the non-Serializable object to bind.
    @throws NameAlreadyBoundException thrown if key already exists in the
     NonSerializableFactory map
    */
Place an object into the NonSerializableFactory namespace for subsequent
access by getObject. There cannot be an already existing binding for key.
Place an object into the NonSerializableFactory namespace for subsequent access by getObject . There cannot be an already existing binding for key .
public static synchronized void bind(String key, Object target) throws NameAlreadyBoundException
    {
        if( wrapperMap.containsKey(key) == true )
            throw new NameAlreadyBoundException(key+" already exists in the NonSerializableFactory map");
        wrapperMap.put(key, target);
    }
public static synchronized void bind ( String key , Object target ) throws NameAlreadyBoundException { if ( wrapperMap . containsKey ( key ) == true ) throw new NameAlreadyBoundException ( key + " already exists in the NonSerializableFactory map" ) ; wrapperMap . put ( key , target ) ; }
Place an object into the NonSerializableFactory namespace for subsequent
access by getObject.
Place an object into the NonSerializableFactory namespace for subsequent access by getObject .