try {
for (final String slotName : slotsItems) {
final RPSlot slot = player.getSlot(slotName);
final PlayerSlot newSlot;
if (slotName.equals("keyring")) {
newSlot = new PlayerKeyringSlot(slotName);
} else if (slotName.equals("trade")) {
newSlot = new PlayerTradeSlot(slotName);
} else {
newSlot = new PlayerSlot(slotName);
}