public static <T extends Storable>T unserialize(Class<T> clazz,Data data){
  try {
    T storableObj=clazz.newInstance();
    storableObj.load(data);
    return storableObj;
  }
 catch (  Exception e) {
    throw new DataException(e);
  }
}

public static < T extends Storable > T unserialize ( Class < T > clazz , Data data ) { try { T storableObj = clazz . newInstance ( ) ; storableObj . load ( data ) ; return storableObj ; } catch ( Exception e ) { throw new DataException ( e ) ; } }
loads an object from its stored data , given its class .
