Added a helper method to find the root cause of an exception.
Fixed BZ#1001435 Moved Content Spec MetaData constants to the common library.