Morphia package with entity classes error

In versions 2.1 and higher i can’t load entity classes.
I load my classes with:

datastore.getMapper().mapPackage("com.hoshion.MongoAPI.POJOs");

And catch an issue:

dev.morphia.mapping.MappingException: Could not get map classes from package 
com.hoshion.MongoAPI.POJOs
    	at dev.morphia.mapping.Mapper.mapPackage(Mapper.java:503) ~[?:?]
    	at com.hoshion.MongoAPI.MongoProvider.connect(MongoProvider.java:46) ~[?:?]
    	at com.hoshion.MongoAPI.Plugin.onEnable(Plugin.java:13) ~[?:?]
    	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[server.jar:3096-Spigot-9fb885e-296df56]
    	at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:342) ~[server.jar:3096-Spigot-9fb885e-296df56]
    	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:480) ~[server.jar:3096-Spigot-9fb885e-296df56]
    	at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugin(CraftServer.java:492) ~[server.jar:3096-Spigot-9fb885e-296df56]
    	at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugins(CraftServer.java:406) ~[server.jar:3096-Spigot-9fb885e-296df56]
    	at net.minecraft.server.v1_16_R3.MinecraftServer.loadWorld(MinecraftServer.java:554) ~[server.jar:3096-Spigot-9fb885e-296df56]
    	at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:257) ~[server.jar:3096-Spigot-9fb885e-296df56]
    	at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:928) ~[server.jar:3096-Spigot-9fb885e-296df56]
    	at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$0(MinecraftServer.java:273) ~[server.jar:3096-Spigot-9fb885e-296df56]
    	at java.lang.Thread.run(Thread.java:831) [?:?]
    Caused by: java.lang.ClassNotFoundException: com.hoshion.MongoAPI.POJOs.Party
    	at jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:636) ~[?:?]
    	at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:182) ~[?:?]
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:519) ~[?:?]
    	at java.lang.Class.forName0(Native Method) ~[?:?]
    	at java.lang.Class.forName(Class.java:466) ~[?:?]
    	at dev.morphia.mapping.Mapper.getClasses(Mapper.java:638) ~[?:?]
    	at dev.morphia.mapping.Mapper.mapPackage(Mapper.java:491) ~[?:?]
    	... 12 more

Class Party:

import dev.morphia.annotations.Entity;
import dev.morphia.annotations.Id;
import dev.morphia.annotations.IndexOptions;
import dev.morphia.annotations.Indexed;
import org.bson.types.ObjectId;

import java.util.ArrayList;
import java.util.List;

@Entity("parties")
public class Party{
    @Id
    public ObjectId _id;

    @Indexed(options = @IndexOptions(unique = true))
    public int id;
    public String leader;
    public String moderator = " ";
    public List<String> members = new ArrayList<>();
    public List<String> pending = new ArrayList<>();
    public boolean isPrivate = true;
    public int limit;
}