class Sol003PackageManagementSubscriptionController {

    @GetMapping(value = "/subscriptions/{subscriptionId}")
    public ResponseEntity<?> getSubscription(@PathVariable("subscriptionId") final String subscriptionId) {
        logger.info(LOG_REQUEST_RECEIVED, " Getting Subscription: ", subscriptionId);
        final Optional<InlineResponse201> optional = subscriptionManager.getSubscription(subscriptionId);
        if (optional.isPresent()) {
            logger.debug("Return subscription with id {} and body {}", subscriptionId, optional);
            return new ResponseEntity<>(optional.get(), HttpStatus.OK);
        }
        final String errorMessage =
                "The requested subscription: " + subscriptionId + " was not found on call getSubscription";
        logger.error(errorMessage);
        return ResponseEntity.status(HttpStatus.NOT_FOUND).body(new ProblemDetails().detail(errorMessage));
    }

    @Autowired public  Sol003PackageManagementSubscriptionController(final SubscriptionManager subscriptionManager);

}