private RunningApplication findApplication(String appname) throws
YarnException,
IOException {
ApplicationReport applicationReport = findInstance(appname);
return applicationReport != null ? new RunningApplication(yarnClient, applicationReport): null;
}