public <T extends Enum<T>> T promptEnum(final String message, final Class<T> type)
{
String value = "";
while ((value == null) || value.trim().isEmpty())
{
value = promptWithCompleter(message, new CompleterAdaptor(new EnumCompleter(type)));
}
T result = (T) Enums.valueOf(type, value.trim());
if (result == null)
{