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