class FrontController {

  public void handleRequest(String request) {
    var command = getCommand(request);
    command.process();
  }

  private Command getCommand(String request) {<FILL_FUNCTION_BODY>}

  private static Class<?> getCommandClass(String request) {
    try {
      return Class.forName("com.iluwatar.front.controller." + request + "Command");
    } catch (ClassNotFoundException e) {
      return UnknownCommand.class;
    }
  }
}

    var commandClass = getCommandClass(request);
    try {
      return (Command) commandClass.getDeclaredConstructor().newInstance();
    } catch (Exception e) {
      throw new ApplicationException(e);
    }
  
<no_super_class>