void (Object obj, Model model, File projectDir, ModelBuildingRequest config, ModelProblemCollector problems) { try { Method interpolateObjectMethod = StringSearchModelInterpolator.class .getDeclaredMethod("interpolateObject", Object.class, Model.class, File.class, ModelBuildingRequest.class, ModelProblemCollector.class); interpolateObjectMethod.setAccessible(true); interpolateObjectMethod.invoke(this, obj, model, projectDir, config, problems); } catch (Exception e) { problems.add(new ModelProblemCollectorRequest(ModelProblem.Severity.ERROR, ModelProblem.Version.BASE) .setException(e) .setMessage(e.getMessage())); } }