@Override
    public void configure(TestElement element) {
        super.configure(element);
        BmTestManager bmTestManager = BmTestManager.getInstance();
        RemoteTestRunner remoteTestRunner = (RemoteTestRunner) element;
        String userKey = remoteTestRunner.getUserKey();
        TestInfo testInfo = null;

        if (GuiPackage.getInstance().getTestPlanFile() == null) {
            if (userKey.matches(Constants.USERKEY_REGEX)) {
                bmTestManager.setUserKey(userKey);
                testInfo = remoteTestRunner.getTestInfo();
                bmTestManager.setTestInfo(testInfo);
                JMeterUtils.setProperty(Constants.CURRENT_TEST, testInfo.getId() + ";" + testInfo.getName());
            } else if (!userKey.isEmpty()) {
                JMeterUtils.reportErrorToUser("UserKey " + '"' + userKey + '"' + " has invalid format",
                        "Invalid UserKey format");
            }
        }


        boolean isLocalRunMode = remoteTestRunner.getIsLocalRunMode();
        bmTestManager.setIsLocalRunMode(isLocalRunMode);
        testPanel.init();

        UpdateChecker.checkForUpdates();
    }