[WFCORE-223] Make the version specific methods private.

And deleted the deprecated method as it is no longer used by WildFly.