public static < WorkingType > WorkingType fromBagAsType ( Bag bag , Class type ) { return ( bag != null ) ? ( WorkingType ) deserialize ( type . getName ( ) , bag ) : null ; }
Reconstitute the given BagObject representation back to the object it represents using a best - effort approach to matching the fields of the BagObject to the class being initialized .