private boolean isCorrectContext(Property<Object> property, boolean create)
{
if (create && property.getAnnotatedElement().isAnnotationPresent(ModifiedOn.class))
{
ModifiedOn annotation = property.getAnnotatedElement().getAnnotation(ModifiedOn.class);
if (!annotation.onCreate())
{
return false;
}
}
return true;