code: public static <T> T map(final JBBPFieldStruct root, final String structPath, final Class<T> mappingClass, final JBBPMapperCustomFieldProcessor customFieldProcessor, final int flags) {
      JBBPUtils.assertNotNull(structPath, "Path must not be null");
      final JBBPFieldStruct struct = root.findFieldForPathAndType(structPath, JBBPFieldStruct.class);
      if (struct == null) {
        throw new JBBPMapperException("Can't find a structure field for its path [" + structPath + ']', null, mappingClass, null, null);
      }
      return map(struct, mappingClass, customFieldProcessor);
    }
docs: Create a class instance, map binary data of a structure for its path to its
  fields and return the instance.
  
  @param <T>                  the mapping class type
  @param root                 a parsed structure to be used as the root, must not be null
  @param structPath           the path of a structure inside of the root to be mapped
  to the class, must not be null
  @param mappingClass         the mapping class, must not be null and must have the
  default constructor
  @param customFieldProcessor a custom field processor to provide custom
  values, it can be null if there is not any mapping field desires the
  processor
  @param flags                special flags to tune mapping
  @return the created and mapped instance of the mapping class
  @throws JBBPMapperException for any error
  @see #FLAG_IGNORE_MISSING_VALUES
  @since 1.1