super();
}
public static RubyHash convertMapToRubyHashWithSymbolsIfNecessary(Ruby rubyRuntime, Map<Object, Object> options) {
RubyHash rubyHash = new RubyHash(rubyRuntime);
Set<Entry<Object, Object>> optionsSet = options.entrySet();
for (Entry<Object, Object> entry : optionsSet) {
Object keyType = entry.getKey();
if (isNotARubySymbol(keyType)) {
String key = (String) keyType;
Object value = entry.getValue();
RubySymbol newSymbol = RubyUtils.toSymbol(rubyRuntime, key);
IRubyObject iRubyValue = toRubyObject(rubyRuntime, value);
rubyHash.put(newSymbol, iRubyValue);
}
}
return rubyHash;