[COCOON-2339] Adding required method to allow build under JDK 1.7 in a form that should not harm any other JDK >= 1.4

git-svn-id: https://svn.apache.org/repos/asf/cocoon/branches/BRANCH_2_1_X@1571609 13f79535-47bb-0310-9956-ffa450edef68