endpoint.setRole(role.value());
this.endpoint.setRole(this.role); if (this.taskScheduler != null) { this.endpoint.setTaskScheduler(this.taskScheduler);
endpoint.setRole(role.value());
this.endpoint.setRole(this.role); if (this.taskScheduler != null) { this.endpoint.setTaskScheduler(this.taskScheduler);