[WFCORE-223] Make the version specific methods private and deleted the deprecated method as it is no longer used by WildFly.