package org.netmelody.cieye.server.configuration.avatar;

import java.text.MessageFormat;

public final class Robohash implements PictureUrlProvider {

    private final static String ROBOHASH_URL = "http://robohash.org/";

    @Override
    public String imageUrlFor(String picture) {
        return MessageFormat.format("{0}{1}.png", ROBOHASH_URL, picture.toLowerCase().trim());
    }

    @Override
    public String handlesPrefix() {
        return "robohash";
    }

}

@@ -57,41 +57,8 @@
 %0D%0A%0D%0A
-import java.text.MessageFormat;%0D%0A
 %0D%0Apu
@@ -274,43 +274,8 @@
 turn
- MessageFormat.format(%22%7B0%7D%7B1%7D.png%22,
  ROB
@@ -287,9 +287,10 @@
 _URL
-,
+ +
  pic
@@ -314,17 +314,25 @@
 ).trim()
-)
+ + %22.jpg%22
 ;%0D%0A    %7D

Simplify robohash