rubyEncoding = findName(value);
}
if (rubyEncoding == null) return null;
try {
Charset charset = Charset.forName(rubyEncoding);
return charset.displayName();
} catch (IllegalCharsetNameException e) {
throw context.getRuntime().newEncodingCompatibilityError(
rubyEncoding + "is not supported in Java.");
} catch (IllegalArgumentException e) {
throw context.getRuntime().newInvalidEncoding(