}
public synchronized void destroyApplication(final String filePath) throws UndeployException, NoSuchApplicationException {
final AppInfo appInfo = deployedApplications.remove(filePath);
if (appInfo == null) {
throw new NoSuchApplicationException(filePath);
}
destroyApplication(appInfo);
}