}
String asName = entry.getValue();
if (Modifier.isStatic(field.getModifiers())) {
if (asReader) module.getSingletonClass().addMethod(asName, new StaticFieldGetter(key, module, field));
if (asWriter) {
if (isFinal) throw context.getRuntime().newSecurityError("Cannot change final field '" + field.getName() + "'");
module.getSingletonClass().addMethod(asName + "=", new StaticFieldSetter(key, module, field));
}
} else {