Clean room reimplementation of JavaFoundation