WP-3480 Added a first pass at handling document exceptions from Alfresco
WP-3480 Added validate function
WP-3480 Changed the status for the set_messages to be error