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