catch (SQLException e)
{
return new DefaultResult<MetaData>(null, Result.Status.FAILURE, e.getMessage(), FailureType.UNSPECIFIED, e);
}
DefaultDefinedMapMetaDataModel recordModel = new DefaultDefinedMapMetaDataModel(recordModels);
DefaultListMetaDataModel listModel = new DefaultListMetaDataModel(recordModel);
if (streaming)
{
listModel.setImplementationClass(ResultSetIterator.class.getName());
}