public DatabaseMapping getMapping(int propertyIndex) { if (propertyIndex < 0 || propertyIndex >= getMappings().size()) { throw DynamicException.invalidPropertyIndex(this, propertyIndex); } DatabaseMapping mapping = getMappings().get(propertyIndex); return mapping; }