Given how this is line wrapping, lets pull the lookup into a private method:

  private static Charset charsetForAlias(String name) {
    return encodingAliases.get(StringUtils.toLowerCase(name));
  }

and declare that helper method right below this parseEncoding method.