[cleanup] Updated deprecated method call, fixed a Velocity warning