ApplicationType type = getApplicationType(uri, entity); if (entity.twoWay) { linkService.createReciprocalLink(uri, null, entity.username, entity.password);
applicationLinkService.createReciprocalLink(remoteRpcUrl, applicationLinkRequest.isCustomRpcURL() ? applicationLinkRequest.getRpcUrl() : null, applicationLinkRequest.getUsername(), applicationLinkRequest.getPassword()); } catch (final NotAdministratorException exception) { return badFormRequest(Lists.newArrayList(i18nResolver.getText("applinks.error.unauthorized")), Lists.newArrayList("authorization"));
applicationLinkService.createReciprocalLink(remoteRpcUrl, localRpcUrl, username, password);