[JBIDE-16519] updating to use non-deprecated method