}
HashMap actualMappings = new HashMap(vm2.length);
for (int i = 0; i < len1; i++)
{
VariableMapping current = vm2[i];
if (actualMappings.containsKey(current.getJavaVariableName()))
throw new IllegalStateException("Variable '" + current.getJavaVariableName() + "' mapped more than once!");
actualMappings.put(current.getJavaVariableName(), current);
}
for (int i = 0; i < len1; i++)
{
VariableMapping expected = vm1[i];
VariableMapping actual = (VariableMapping)actualMappings.get(expected.getJavaVariableName());
if (actual == null)
throw new IllegalStateException("Variable '" + expected.getJavaVariableName() + "' not found.");
bool = validateVariableMapping(expected, actual);