@Override
    public PartnerRole getTypeByName(final String name) throws WrongTypeNameException {
        if (name == null) {
            throw new WrongTypeNameException("Type name is empty");
        }
        switch (name) {
            case CREATOR_ROLE_NAME:
            case SPONSOR_ROLE_NAME:
            case PARTNER_ROLE_NAME:
                return new PartnerRole(name);
            default: throw new WrongTypeNameException("Type name is wrong");
        }
    }