class PMMLRestResourceGenerator {

    void setPredictionModelName(ClassOrInterfaceDeclaration template) {
        template.getMethodsByName("pmml").get(0)
                .getBody().orElseThrow(() -> new RuntimeException(""))
                .getStatement(0).asExpressionStmt().getExpression()
                .asVariableDeclarationExpr()
                .getVariable(0)
                .getInitializer().orElseThrow(() -> new RuntimeException(""))
                .asMethodCallExpr()
                .getArgument(0).asStringLiteralExpr().setString(kiePMMLModel.getName());
    }

    public  PMMLRestResourceGenerator(KiePMMLModel model, String appCanonicalName);

}