public void run() {
		while (true) {
			try {
				if (queue.isEmpty()) {
					// System.out.println("Going to sleep...");
					Thread.sleep(500);
				} else {
					System.out.println(queue.toString());
					String requestID = queue.peek();

					prepareFilesForComposition(requestID);
					askForComposition(requestID);
					convertCompositionToXML(requestID);

					queue.remove();
				}
			} catch (InterruptedException e) {
				Thread.currentThread().interrupt();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
	}