Object dto = KubernetesHelper.loadJson(json);
if (dto == null) {
throw new MojoFailureException("Could not load kubernetes json: " + json);
}
Controller controller = new Controller(kubernetes);
controller.apply(dto, json.getName());
} catch (IOException e) {
throw new MojoExecutionException(e.getMessage(), e);
}
}