for (int i = 0; i < paths.length; i++) {
paths[i] = files[i].getAbsolutePath();
}
return new ITOperationStatusImpl(this.iTunesCom.callFunction("AddFiles", paths).getDispatch());
} catch (DispatchObjectNullException e) {
throw new JitcaFileException("Error occured during addFiles. Files could not be added.");
} catch (ITUNES_E_OBJECTDELETED e) {
throw new PlaylistDeletedException(this);
} catch (ITUNES_E_OBJECTLOCKED e) {
throw new PlaylistReadOnlyException(this);
}