code: private <T> T createBean(QueryParameters params, Class<T> type,
                               PropertyDescriptor[] props, int[] columnToProperty) throws MjdbcException {
  
          T bean = MappingUtils.newInstance(type);
  
          for (int i = 0; i < columnToProperty.length; i++) {
  
              if (columnToProperty[i] == PROPERTY_NOT_FOUND) {
                  continue;
              }
  
              PropertyDescriptor prop = props[columnToProperty[i]];
              Class<?> propType = prop.getPropertyType();
  
              Object value = this.processValue(params, i, prop);
  
              if (propType != null && value == null && propType.isPrimitive()) {
                  value = primitiveDefaults.get(propType);
              }
  
              MappingUtils.callSetter(bean, prop, value);
          }
  
          return bean;
      }
docs: Creates and fills Java Object with values from @params
  Is used by toBean* functions
  
  @param params           value which used to fill Java Object
  @param type             Java Class definition which would be instantiated
  @param props            Java Class property descriptor which would be used to set values(via setter)
  @param columnToProperty mapping column number to Java Class property
  @return filled Java Object
  @throws org.midao.jdbc.core.exception.MjdbcException