@Override
    public ApiResponse executeCommand(final ApiCommand command) throws IOException, InternalApiException {
        if (command.getHttpMethod() == GET) {
            return executeGetCommand(command);
        } else if (command.getHttpMethod() == POST) {
            return executePostCommand(command);
        } else {
            String message = String.format("Http method is not supported: [%s]", command.getHttpMethod());
            throw new InternalApiException(message);
        }
    }