TableDetails tableDetails = findTableDetails(context, dataModelObject.getClass());
ContentValues contentValues = ModelInflater.deflate(tableDetails, dataModelObject);
Uri insertUri = UriMatcherHelper.generateItemUri(context, tableDetails).build();
ContentResolver contentResolver = context.getContentResolver();
<BUG>contentResolver.insert(insertUri, contentValues);

}</BUG>
public static <T> T insertAndReturn(T dataModelObject) {
return insertAndReturn(getApplicationContext(), dataModelObject);
}

TableDetails tableDetails = findTableDetails(context, dataModelObject.getClass());
ContentValues contentValues = ModelInflater.deflate(tableDetails, dataModelObject);
Uri insertUri = UriMatcherHelper.generateItemUri(context, tableDetails).build();
ContentResolver contentResolver = context.getContentResolver();
Uri insert = contentResolver.insert(insertUri, contentValues);
return ContentUris.parseId(insert);
}
public static <T> T insertAndReturn(T dataModelObject) {
return insertAndReturn(getApplicationContext(), dataModelObject);
}
