} catch (InterruptedException e) {
Thread.currentThread().interrupt();
log.error("Shutdown interrupted", e);
}
OperationServicesResultCode code;
if (serverComponent.getAvailability() == AvailabilityType.DOWN)
code = OperationServicesResultCode.SUCCESS;
else
code = OperationServicesResultCode.FAILURE;