I want to write two classes implement interface with default method with parameter - function name and use it in both classes, but don know how to put method name as a parameter. It necessary to avoid duplication.

```
interface C {
        default public StatusEntry getServiceStatus(){????}
}

class A implements C { 

    private StatucBType getSatusA(){...} 

    @Override
    public StatusEntry getServiceStatus() throws Exception {
        StatusEntry result = new StatusEntry();
        ServiceStatus status;
        try {
            status = **getSatusA()**/*need make as a parametr*/.getStatus();
        } catch (Exception e) {
        }
        result.Status(status);
        return result;
    }
}

class B implements C {    
    private StatucBType getSatusB(){...}

    @Override
    public StatusEntry getServiceStatus() throws Exception {
        StatusEntry result = new StatusEntry();
        ServiceStatus status;
        try {
            status = **getSatusB()**/*need make as a parametr*/.getStatus();
        } catch (Exception e) {
        }
        result.Status(status);
        return result;
    }
}

```