public Object loadObject(InputStream inputStream) throws IOException, ClassNotFoundException {
        ClassLoader classLoader = _classLoader;
        if (classLoader == null) {
            classLoader = getContextClassLoader();
        }

        ObjectInputStream objectInputStream = _serializationService.createObjectInputStream(inputStream, classLoader);
        Object object = null;
        try {
            object = objectInputStream.readObject();
        } catch (Throwable t) {
            FFDCFilter.processException(
                                        t,
                                        "com.ibm.ws.session.SessionLoader.loadObject",
                                        "82",
                                        this);

            if (t instanceof IOException) {
                throw (IOException) t;
            }

            if (t instanceof ClassNotFoundException) {
                throw (ClassNotFoundException) t;
            }
        }

        return object;
    }
public Object loadObject ( InputStream inputStream ) throws IOException , ClassNotFoundException { ClassLoader classLoader = _classLoader ; if ( classLoader == null ) { classLoader = getContextClassLoader ( ) ; } ObjectInputStream objectInputStream = _serializationService . createObjectInputStream ( inputStream , classLoader ) ; Object object = null ; try { object = objectInputStream . readObject ( ) ; } catch ( Throwable t ) { FFDCFilter . processException ( t , "com.ibm.ws.session.SessionLoader.loadObject" , "82" , this ) ; if ( t instanceof IOException ) { throw ( IOException ) t ; } if ( t instanceof ClassNotFoundException ) { throw ( ClassNotFoundException ) t ; } } return object ; }
Loads an object using the classloader associated with this loader.
<p>

@see com.ibm.wsspi.session.ILoader#loadObject(java.io.InputStream)