@ NotNull public T get ( ) throws IOException , ClassNotFoundException { /* cannot be pre-instantiated to enable thread concurrency*/ ByteArrayInputStream byteArrayInputStream = null ; ObjectInputStream objectInputStream = null ; try { byteArrayInputStream = new ByteArrayInputStream ( this . serializedObject ) ; objectInputStream = new ObjectInputStream ( byteArrayInputStream ) ; return ( T ) objectInputStream . readObject ( ) ; } finally { IOUtils . closeQuietly ( byteArrayInputStream ) ; IOUtils . closeQuietly ( objectInputStream ) ; } }
Gets a fresh clone of the object .