class ModuleResource extends AbstractResource {

    @GET
    @Produces(MediaType.APPLICATION_JSON)
    @Path("/{name}/{version}" + ServerAPI.PROMOTION + ServerAPI.GET_FEASIBLE)
    public Response canBePromoted(@PathParam("name") final String name, @PathParam("version") final String version) {
        if (LOG.isInfoEnabled()) {
            LOG.info(String.format("Got a is the module promotable request [%s, %s]", name, version));
        }

        final String moduleId = DbModule.generateID(name, version);
        final PromotionReportView promotionReportView = getModuleHandler().getPromotionReport(moduleId);

        final PromotionEvaluationReport report =
                PromotionReportTranslator.toReport(promotionReportView);


        return Response.ok(report.isPromotable()).build();
    }

    public  ModuleResource(final RepositoryHandler repoHandler, final GrapesServerConfig dmConfig);

}