class AccessToken {

    public static AccessToken fromString(String tokenString) throws NotAnAccessTokenException {
        try {
            return new AccessToken(UUID.fromString(tokenString));
        } catch (IllegalArgumentException e) {
            throw new NotAnAccessTokenException(e);
        }
    }

    private  AccessToken(UUID token);

}