if (event.getAnnotatedType().isAnnotationPresent(Entity.class)) {
AnnotatedType<X> type = event.getAnnotatedType();
if (type.isAnnotationPresent(IdentityEntity.class)) {
IdentityEntity a = type.getAnnotation(IdentityEntity.class);
switch(a.value()) {
case IDENTITY_OBJECT:
identityClass = type.getJavaClass();
break;
case IDENTITY_CREDENTIAL:
credentialClass = type.getJavaClass();