Update pom.xml
Support multiple versions with reflection

Warning: This will break if any of the underlying NMS methods are
changed.