Removed deprectated static method call.