public void init(String host, String port, String username, String password, String batch, String batches, String threads, String outputFileLocation, String context) throws Exception {
String baseURL = "http://" + host + ":" + port + "/" + context;
FedoraClient fedoraClient = new FedoraClient(baseURL, username, password);
apim = fedoraClient.getAPIMMTOM();
fedoraClient.shutdown();
try {
batchSize = Integer.valueOf(batch);
} catch (NumberFormatException nfe) {
System.err.println("Batch Size value could not be " +