code: public static SqlContext getSqlContext(BeanDescFactory beanDescFactory, Object param) {
          SqlContext context = new SqlContextImpl();
  
          if (param != null) {
              BeanDesc beanDesc = beanDescFactory.getBeanDesc(param);
              for (int i = 0; i < beanDesc.getPropertyDescSize(); i++) {
                  PropertyDesc pd = beanDesc.getPropertyDesc(i);
                  context.addArg(pd.getPropertyName(), pd.getValue(param), pd
                          .getPropertyType());
              }
          }
  
          return context;
      }
docs: Returns the {@link SqlContext} instance.
  
  @param beanDescFactory the bean descriptor factory
  @param param the parameter object
  
  @return {@link SqlContext} instance