class WilmaStub {

    @Override
    public String toString() {
        String generatedName = "generated name";
        String conditionContent = "";
        if (requestCondition != null) {
            conditionContent = requestCondition.toString();
        }
        String responseContent = "";
        String usedTemplate = "";
        if (responseDescriptor != null) {
            responseContent = responseDescriptor.responseDescriptorToString();
            usedTemplate = responseDescriptor.templateToString();
        }

        String stubConfigurationFormatterString = "{ \"wilmaStubConfiguration\": { \n"
                + " \"groupName\": \"" + groupName + "\"";
        if (responseDescriptor != null) {
            stubConfigurationFormatterString += ",\n  \"dialogDescriptors\": [{ \"name\": \"" + generatedName + "\","
                    + " \"usage\": \"always\", \"comment\": \"" + generatedName + "\","
                    + "\n  \"conditionDescriptor\": " + conditionContent + ",\n  \"responseDescriptor\": " + responseContent
                    + "}]," //dialogDescriptors end
                    + "\n  \"templates\": [ " + usedTemplate + " ]";
        }
        if (interceptorDescriptor != null) {
            stubConfigurationFormatterString += ",\n  " + interceptorDescriptor.toString();
        }
        stubConfigurationFormatterString += "\n  }\n}";
        return stubConfigurationFormatterString;
    }

    public  WilmaStub(String groupName, RequestCondition requestCondition, ResponseDescriptor responseDescriptor, InterceptorDescriptor interceptorDescriptor);

}