if (event != null) {
event.fire(new IdentityObjectCreatedEvent(identityInstance));
}
Object id = modelProperties.get(PROPERTY_IDENTITY_ID).getValue(identityInstance);
IdentityObject obj = new SimpleIdentityObject(name, (id != null ? id.toString() : null),
identityObjectType);
if (attributes != null) {
List<IdentityObjectAttribute> attribs = new ArrayList<IdentityObjectAttribute>();
for (String key : attributes.keySet()) {