Update CommandTemplate.java

Fixed class to have a static method instead of a constructor.