helloworld_mb/helloworld-srv-impl/src/main/java/es/jc/helloworld/GreeterImpl.java
public String greet(final String name, final Locale locale) {
		final String greeting;
		switch (locale.getLanguage()) {
		case "en":
			greeting = "Hello " + name + "!";
			break;
		case "es":
			greeting = "¡Hola " + name + "!";
			break;
		case "fr":
			greeting = "Bonjour " + name + "!";
			break;
		default:
			greeting = "Saluton " + name + "!";
		}
		return greeting;
	}
/**
	 * {@inheritDoc}<br>
	 * Only locale language will be taken into account for a set of supported values. Otherwise, Esperanto will be
	 * considered as default language.
	 */

Only locale language will be taken into account for a set of supported values. Otherwise, Esperanto will be
considered as default language.
Only locale language will be taken into account for a set of supported values . Otherwise Esperanto will be considered as default language .
public String greet(final String name, final Locale locale) {
		final String greeting;
		switch (locale.getLanguage()) {
		case "en":
			greeting = "Hello " + name + "!";
			break;
		case "es":
			greeting = "¡Hola " + name + "!";
			break;
		case "fr":
			greeting = "Bonjour " + name + "!";
			break;
		default:
			greeting = "Saluton " + name + "!";
		}
		return greeting;
	}
public String greet ( final String name , final Locale locale ) { final String greeting ; switch ( locale . getLanguage ( ) ) { case "en" : greeting = "Hello " + name + "!" ; break ; case "es" : greeting = "¡Hola "  ame  !"; break ; case "fr" : greeting = "Bonjour " + name + "!" ; break ; default : greeting = "Saluton " + name + "!" ; } return greeting ; }
{@inheritDoc}<br>
 Only locale language will be taken into account for a set of supported values.
{ @inheritDoc } <br > Only locale language will be taken into account for a set of supported values .