WP-3491 Added function to generated unique indexed names for the document being saved to Alfresco.
WP-3491 Removing a few lines that were added incorrectly in the merge.