Conversion of JPO to Netbeans Platform (attempt 1)