}
private void loadTableDescriptors() throws SQLException,
DataSourceException {
TeradataDataStoreFactory factory = TeradataServiceExtension
.getFactory();
Map<String, Serializable> params = new HashMap<String, Serializable>();
params.put(DBTYPE.key, (Serializable) DBTYPE.sample);
params.put(HOST.key, host);
params.put(PORT.key, port);
params.put(USER.key, username);
params.put(PASSWD.key, password);
params.put(DATABASE.key, database);
BasicDataSource dataSource = null;
Connection connection = null;
try {
dataSource = factory.createDataSource(params);
connection = dataSource.getConnection();
Statement statement = connection.createStatement();
if (!hasWritableTable(