/** * Create a new {@link BooleanProperty} from given <code>path</code>, using given {@link Path} <code>name</code>. * @param path Path from which to obtain the property path name (not null) * @return {@link BooleanProperty} builder */ static BooleanPropertyBuilder create(Path<Boolean> path) { ObjectUtils.argumentNotNull(path, "Path must be not null"); BooleanPropertyBuilder builder = create(path.getName()); path.getParent().ifPresent(p -> builder.parent(p)); return builder; }