}
// Create an instance of a DatabaseResult class with the given result
- $resultInstance = DatabaseResult::createDatabaseResult($result);
+ $resultInstance = ObjectFactory::createObjectByConfiguredName('database_result_class', array($result));
// And return the instance
return $resultInstance;