Gets a value using a query.
@param query the query to use, not null @return the result, null if not found and optional is true @throws DateTimeException if the type is not available and the section is not optional
See Implementation
Gets a value using a query.
@param query the query to use, not null @return the result, null if not found and optional is true @throws DateTimeException if the type is not available and the section is not optional