rset2 = statement2.executeQuery("SELECT `class_id`, `default_class_id` FROM `character_subclasses` WHERE `char_obj_id`=" + objectId + " AND `type`=" + SubClassType.BASE_CLASS.ordinal() + " LIMIT 1");
if (rset.next() && rset2.next())
{
final ClassId classId = ClassId.VALUES[rset2.getInt("class_id")];
final ClassId defaultClassId = ClassId.VALUES[rset2.getInt("default_class_id")];
final PlayerTemplate template = PlayerTemplateHolder.getInstance().getPlayerTemplate(defaultClassId.getRace(), classId, Sex.VALUES[rset.getInt("sex")]);
player = new Player(objectId, template);
player.loadVariables();
player.loadInstanceReuses();
player.loadPremiumItemList();
player.bookmarks.setCapacity(rset.getInt("bookmarks"));