Remove Tool Content was trying to remove the submission details based on the tool content id. But the submission details are based on the tool session id, so changed the remove code to remove the submission details as part of remove tool session, not remove tool content.Also fixed remove tool content so that it will remove the related tool sessions if required, and to stop it throwing an exception if no data is found (as per the interface definition).
modified implementaion of getFileUploadedBySession to return a SortedMap instead of a Map.The SortedMap is sorted using the LastNameAlphabeticComparator.
modified method signature getFilesUploadedBySession to return a SortedMap instead of a Map.This was done to ensure a consistent order when displaying files.
Service bean transaction definition was missing some of the ToolContentManager and ToolSessionManager methods, so these methods were not forming part of transactions.