OPENJPA-2070: Error processing while populating Metamodel classes needs improvement.  Back-ported to 2.1.x Kevin Sutter's trunk changes.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1469488 13f79535-47bb-0310-9956-ffa450edef68