Example from netbeans