public static <T extends Entity>T create(Cursor cursor,Class<T> cls){
  try {
    T entity=cls.newInstance();
    Field[] fields=cls.getDeclaredFields();
    return create(entity,cursor,cls,fields);
  }
 catch (  Exception e) {
    e.printStackTrace();
    return null;
  }
}

public static < T extends Entity > T create ( Cursor cursor , Class < T > cls ) { try { T entity = cls . newInstance ( ) ; Field [ ] fields = cls . getDeclaredFields ( ) ; return create ( entity , cursor , cls , fields ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; return null ; } }
create new entity instance from database raw instance .
