}
}
private Object resolvePrincipal(Object entity, Property<Object> property)
{
CurrentUser principal = AnnotationInstanceProvider.of(CurrentUser.class);
Class<?> propertyClass = property.getJavaClass();
Set<Bean<?>> beans = manager.getBeans(propertyClass, principal);
if (!beans.isEmpty() && beans.size() == 1)
{
Bean<?> bean = beans.iterator().next();