long startTime = System.currentTimeMillis();
long endTime = startTime + waitTime;
while (System.currentTimeMillis() < endTime) {
try {Thread.sleep(sleepDeleteTime);} catch (Exception e) {}
try {
DescribeTableRequest request = new DescribeTableRequest().withTableName(pTableName);
TableDescription tableDescription = dynamoDBClient.describeTable(request).getTable();
String tableStatus = tableDescription.getTableStatus();
LOG.debug(pTableName + " - current state: " + tableStatus);
} catch (AmazonServiceException ase) {
if (ase.getErrorCode().equalsIgnoreCase("ResourceNotFoundException") == true)