class ApplicationControllerCallback implements ResponseHandler<T> {

    @Override
    public void onResponse(T response) {
        logger.info("ON RESPONSE IN CALLBACK");

        Status status = appCSupport.getStatusFromGenericResponse(response);

        logger.info("Status code is: " + status.getCode());
        logger.info("Status message is: " + status.getMessage());

        if (appCSupport.getFinalityOf(status)) {
            logger.debug("Obtained final status, complete the task");
            completeExternalTask(externalTask, externalTaskService, status);
        } else {
            logger.debug("Intermediate status, continue the task");
        }
    }

    public  ApplicationControllerCallback(ExternalTask externalTask, ExternalTaskService externalTaskService,
            ApplicationControllerSupport appCSupport);

}