* @param applications :
* Collection of application beans
*/
private void modify(Application appli, Collection applications)
throws ApplicationException {
Application application = appli;
for (Iterator it = applications.iterator(); it.hasNext();) {
Application a = (Application) it.next();
if (application.getId().equals(a.getId())) {
if (!application.getName().equals(a.getName())) {
try {
fileService
.changeFileName(a.getName() + xmlFileExt, application
.getName()
+ xmlFileExt, appliDirPath);
} catch (FileException e) {
throw new ApplicationException(e.toString());
}