int i = 0;
ILocalizedTitle[] keys = new ILocalizedTitle[localizedTitles.size()];
Set<Entry<String, String>> entries = localizedTitles.entrySet();
for ( final Entry<String, String> entry : entries )
{
keys[i++] = new ILocalizedTitle()
{
public String lang()
{
return entry.getKey();
}