for (int i = 0; i < maps.size(); i++) {
Object child = maps.get(i);
if (child instanceof MappingBase) {
// end scan if a real mapping is found
MappingBase mapbase = (MappingBase)child;
cf = mapbase.getBoundClass().getMungedFile();
if (mapbase.getBoundClass().isDirectAccess()) {
break;
}
}
}