Yet more implementation:
 - 'borrow' some classes from RI under CDDL license