Query plugin using a method directly from datapackag plugin
In SaveQueryCommmand class, it uses a method getNextId() directly for
AccessionNumber class which is in datapackage plugin. This is forbidden. We
need put the method into DataPackageInterface and DataPackagePlugin class. And
then use it by the service provider.