code: private DockerCommand createCommand(Class<? extends DockerCommand> commandType) {
          try {
              return commandType.newInstance();
          } catch (InstantiationException | IllegalAccessException e) {
              throw new BeanCreationException("Failed to create Docker command of type: " + commandType, e);
          }
      }
docs: Creates new Docker command instance of given type.
  @param commandType
  @return