public static <T> T map(final JBBPFieldStruct root, final Class<T> mappingClass) {
    return mappingClass.cast(map(root, allocateMemoryForClass(root, mappingClass), null));
  }
public static < T > T map ( final JBBPFieldStruct root , final Class < T > mappingClass ) { return mappingClass . cast ( map ( root , allocateMemoryForClass ( root , mappingClass ) , null ) ) ; }
Create a class instance, map binary data of a structure to the instance and
return it. It will create a class instance through a hack method and its
constructor will not be called, thus use the method carefully.

@param <T>          the mapping class type
@param root         a parsed structure to be mapped to the class instance, must not
be null
@param mappingClass the class to be instantiated and mapped, must not be
null
@return the created and mapped instance of the class
@throws JBBPMapperException for any error