Update CommandProcessor.java

Too tight coupling