@Override public Void call() { try { endpointService.detachEndpointFromUser(attachedProfile); } catch (Throwable t) { LOG.error("Error: " + t.getMessage(), t); throw t; } return null; } }));
byte[] endpointKeyHash = Base64Util.decode(endpointDetachRequest.getEndpointKeyHash()); if (Arrays.equals(profile.getEndpointKeyHash(), endpointKeyHash)) { endpointService.detachEndpointFromUser(profile); response.setResult(SyncStatus.SUCCESS); } else { if (detachEndpoint.getEndpointUserId() != null && detachEndpoint.getEndpointUserId().equals(profile.getEndpointUserId())) { endpointService.detachEndpointFromUser(detachEndpoint); response.setResult(SyncStatus.SUCCESS); } else {