log.debug("Registering entities.");
try {
if (entities!=null) {
Iterator it = entities.iterator();
while (it.hasNext()) {
Entity entity = (Entity)it.next();
registerEntity(entity);
}
}
} catch (RuntimeException e) {
throw new EntitiesRegistrationException(e.getMessage(),e);