private static void setFieldValue(final Object classInstance, final Field classField, final JBBPAbstractField binField, final Object value) {
    try {
      classField.set(classInstance, value);
    } catch (IllegalArgumentException ex) {
      throw new JBBPMapperException("Can't set value to a mapping field", binField, classInstance.getClass(), classField, ex);
    } catch (IllegalAccessException ex) {
      throw new JBBPMapperException("Can't get access to a mapping field", binField, classInstance.getClass(), classField, ex);
    }
  }
private static void setFieldValue ( final Object classInstance , final Field classField , final JBBPAbstractField binField , final Object value ) { try { classField . set ( classInstance , value ) ; } catch ( IllegalArgumentException ex ) { throw new JBBPMapperException ( "Can't set value to a mapping field" , binField , classInstance . getClass ( ) , classField , ex ) ; } catch ( IllegalAccessException ex ) { throw new JBBPMapperException ( "Can't get access to a mapping field" , binField , classInstance . getClass ( ) , classField , ex ) ; } }
Set a value to a field of a class instance. Can't be used for static
fields!

@param classInstance a class instance
@param classField    a mapping class field which should be set by the value,
must not be null
@param binField      a parsed bin field which value will be set, can be null
@param value         a value to be set to the class field