class AssetDetailController {

    @ApiOperation(httpMethod = "GET", value = "Get the creator details for a particular resource")
    @GetMapping(value = "/v1/{assetGroup}/{resourceType}/{resourceId}/creatordetails")
    public ResponseEntity<Object> getEc2CreatorDetail(
            @PathVariable(name = "assetGroup", required = true) String assetGroup,
            @PathVariable(name = "resourceType", required = true) String resourceType,
            @PathVariable(name = "resourceId", required = true) String resourceId) {
        Map<String, Object> creatorDetail;

        try {
            creatorDetail = assetService.getEc2CreatorDetail(resourceId);

        } catch (Exception e) {
            LOGGER.error("Error in getEc2CreatorDetail ",e);
            creatorDetail = new HashMap<>();
        }
        return ResponseUtils.buildSucessResponse(creatorDetail);
    }

}